Skip to content

Math Utils

Lerp Functions

The math utils provide a set of lerp functions that can be used to interpolate between two values.
The lerp functions are available for different data types, such as

  • float
  • double
  • integer
  • Vec2
  • Vec3
  • Vector3f
  • Color

Clamp Functions

The math utils provide a set of clamp functions that can be used to clamp a value between a minimum and maximum value.
The clamp functions are available for different data types, such as

  • float
  • double
  • integer

Degrees to Radians and Radians to Degrees Functions

Functions to convert between degrees and radians are also provided.
Works with float, and double.