Skip to content
Select language:English

MCL 1.3.5

object Companion

Functions

fun unitX(): Vec3f

Creates a unit vector along the X-axis.

fun unitY(): Vec3f

Creates a unit vector along the Y-axis.

fun unitZ(): Vec3f

Creates a unit vector along the Z-axis.

fun wrap(v: DoubleArray, start: Int = 0): Vec3f

Creates a Vec3f from a portion of a DoubleArray.

fun wrap(v: FloatArray, start: Int = 0): Vec3f

Creates a Vec3f from a portion of a FloatArray.

fun zero(): Vec3f

Creates a zero vector.