Skip to content

KBE3D / KBCore / Cesium / Math / clamp

函数: clamp()

clamp(value: number, min: number, max: number): number

Constraint a value to lie between two values.

参数

value

number

The value to clamp.

min

number

The minimum value.

max

number

The maximum value.

返回

number

The clamped value such that min <= result <= max.

KBE3D @3.0.0 Copyright © 2024-present KBE3D