Package dev. romainguy. kotlin. math
Types
Matrix Column
Link copied to clipboard
Quaternion
Link copied to clipboard
Construct Quaternion and set each value. The Quaternion will be normalized during construction Default: Identity
Quaternion Component
Link copied to clipboard
Rational
Link copied to clipboard
Rotations Order
Link copied to clipboard
Vector Component
Link copied to clipboard
Functions
clamp
Link copied to clipboard
conjugate
Link copied to clipboard
cross
Link copied to clipboard
div
Link copied to clipboard
dot
Link copied to clipboard
eq
Link copied to clipboard
equal
Link copied to clipboard
euler Angles
Link copied to clipboard
fun eulerAngles(m: Mat4, order: RotationsOrder = RotationsOrder.ZYX): Float3
Content copied to clipboard
Get the Euler angles in degrees from a rotation Matrix
fun eulerAngles(q: Quaternion, order: RotationsOrder = RotationsOrder.ZYX): Float3
Content copied to clipboard
Convert a Quaternion to Euler angles
greater Than
Link copied to clipboard
greater Than Equal
Link copied to clipboard
gt
Link copied to clipboard
gte
Link copied to clipboard
inverse
Link copied to clipboard
length
Link copied to clipboard
lerp
Link copied to clipboard
less Than
Link copied to clipboard
less Than Equal
Link copied to clipboard
look Towards
Link copied to clipboard
fun lookTowards(eye: Float3, forward: Float3, up: Float3 = Float3(z = 1.0f)): Mat4
Content copied to clipboard
lt
Link copied to clipboard
lte
Link copied to clipboard
max
Link copied to clipboard
min
Link copied to clipboard
minus
Link copied to clipboard
mix
Link copied to clipboard
neq
Link copied to clipboard
nlerp
Link copied to clipboard
normalize
Link copied to clipboard
not Equal
Link copied to clipboard
perspective
Link copied to clipboard
plus
Link copied to clipboard
quaternion
Link copied to clipboard
Get the Quaternion from a rotation Matrix
Rational
Link copied to clipboard
rotation
Link copied to clipboard
Construct a Quaternion Rotation Matrix following the Hamilton convention
fun rotation(d: Float3, order: RotationsOrder = RotationsOrder.ZYX): Mat4
Content copied to clipboard
Construct a rotation matrix from Euler angles using YPR around a specified order
fun rotation(yaw: Float = 0.0f, pitch: Float = 0.0f, roll: Float = 0.0f, order: RotationsOrder = RotationsOrder.ZYX): Mat4
Content copied to clipboard
Construct a rotation matrix from Euler yaw, pitch, roll around a specified order.
slerp
Link copied to clipboard
fun slerp(a: Quaternion, b: Quaternion, t: Float, dotThreshold: Float = 0.9995f): Quaternion
Content copied to clipboard
Spherical linear interpolation between two given orientations
times
Link copied to clipboard
transform
Link copied to clipboard
translation
Link copied to clipboard