Skip to content

KBE3D / KBCore / Cesium / Math / signNotZero

函数: signNotZero()

signNotZero(value: number): number

Returns 1.0 if the given value is positive or zero, and -1.0 if it is negative. This is similar to Math#sign except that returns 1.0 instead of 0.0 when the input value is 0.0.

参数

value

number

The value to return the sign of.

返回

number

The sign of value.

KBE3D @3.0.0 Copyright © 2024-present KBE3D