Skip to content

KBE3D / KBCore / turf / convertLength

函数: convertLength()

convertLength(length: number, originalUnit?: Units, finalUnit?: Units): number

Function

Converts a length from one unit to another.

参数

length

number

Length to be converted

originalUnit?

Units

Input length unit

finalUnit?

Units

Returned length unit

返回

number

The converted length

KBE3D @3.0.0 Copyright © 2024-present KBE3D