MathUtils

object MathUtils

Functions

Link copied to clipboard
fun inToCM(inch: Double): Double
Link copied to clipboard
fun linspace(start: Double, end: Double, num: Int): List<Double>

Creates a linearly spaced array of values.

Link copied to clipboard

Normalizes an angle to the range (-π, π].

Link copied to clipboard
fun quaternionToEuler(q: Quaternion): YawPitchRollAngles
Link copied to clipboard
fun rotateVector(x: Double, y: Double, heading: Double): Pair<Double, Double>

Rotates a 2D vector by a given heading angle.