Skip to main content

Function: clip()

clip(a, minA, maxA): number

Defined in: src/utils/simpleFunctions.ts:59

Clip a to the interval [minA, maxA] (ManimCE clip). Returns a when it is already inside the interval, otherwise the nearer bound.

Parameters​

a​

number

minA​

number

maxA​

number

Returns​

number