Static ReadonlyDEG2Constant to convert degrees to radians.
Static ReadonlyHALF_Mathematical constant PI / 2.
Static ReadonlyPIMathematical constant PI.
Static ReadonlyQUARTER_Mathematical constant PI / 4.
Static ReadonlyRAD2Constant to convert radians to degrees.
Static ReadonlyTWO_Mathematical constant 2 * PI.
StaticatReads an element from a fixed-size array whose bounds are guaranteed
correct by construction (e.g. Float32Array components of a Matrix4/
Quaternion, or a small fixed axis list) — centralizes the
noUncheckedIndexedAccess trust boundary in one place instead of a raw
non-null assertion at every call site.
The array-like to read from.
The index to read.
The element at the given index.
StaticclampClamps a value between a minimum and maximum.
The value to clamp.
The minimum value.
The maximum value.
The clamped value.
StaticdegConverts degrees to radians.
The angle in degrees.
The angle in radians.
StaticfastReturns the cosine of the given angle in radians using a lookup table.
The angle in radians.
The cosine of the angle.
StaticfastReturns the sine of the given angle in radians using a lookup table.
The angle in radians.
The sine of the angle.
StaticgenerateGenerates a unique identifier (UUID v4). Uses crypto.randomUUID() if available.
A string representation of a UUID.
StaticinitInitializes the sine and cosine lookup tables for fast lookup.
StaticlerpLinearly interpolates between two numbers by a factor t.
The start value (returned when t = 0).
The end value (returned when t = 1).
The interpolation factor, typically in [0, 1].
The interpolated value.
StaticradConverts radians to degrees.
The angle in radians.
The angle in degrees.
Utility class for mathematical operations and constants.