Skip to content

KBE3D / KBCore / Cesium / Math / sign

函数: sign()

sign(value: number): number

Returns the sign of the value; 1 if the value is positive, -1 if the value is negative, or 0 if the value is 0.

参数

value

number

The value to return the sign of.

返回

number

The sign of value.

KBE3D @3.0.0 Copyright © 2024-present KBE3D