clampToStartEnd MethodStatic
Clamp to (min(a,b), max(a,b))
- always returns a number between a and b
clampToStartEnd(x: number, a: number, b: number): number
Parameter | Type | Description |
---|---|---|
x | number | |
a | number | |
b | number |
Returns - number
Defined in
- Geometry.ts Line 643
Last Updated: 20 June, 2023