Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/Three.d.ts>MathUtils.clamp

A simple transformation of three.js for use within a Deno workflow
Go to Latest
function MathUtils.clamp
import { MathUtils } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";
const { clamp } = MathUtils;

Clamps the x to be between a and b.

Parameters

value: number

Value to be clamped.

min: number

Minimum value

max: number

Maximum value.

Returns

number