MCPcopy Create free account
hub / github.com/esengine/esengine / sign

Method sign

packages/math/src/MathUtils.ts:209–211  ·  view source on GitHub ↗

* 获取数值的符号 * @param value 数值 * @returns 1、-1或0

(value: number)

Source from the content-addressed store, hash-verified

207 * @returns 1、-1或0
208 */
209 static sign(value: number): number {
210 return value > 0 ? 1 : value < 0 ? -1 : 0;
211 }
212
213 // 随机数生成
214

Callers 1

onMouseWheelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected