API Reference > Geometry-core > CartesianGeometry > Geometry > clamp clamp MethodStatic Clamp value to (min,max) with no test for order of (min,max) clamp(value: number, min: number, max: number): number Parameter Type Description value number value to clamp min number smallest allowed output max number largest allowed result. Returns - number Defined in core/geometry/src/Geometry.ts Line 589 Last Updated: 13 June, 2024