Skip to content
Select language:English

MCL 1.3.5

object Companion

Functions

fun unitX(): Vec3d

Creates a unit vector along the X-axis.

fun unitY(): Vec3d

Creates a unit vector along the Y-axis.

fun unitZ(): Vec3d

Creates a unit vector along the Z-axis.

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

Creates a Vec3d from a portion of a DoubleArray.

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

Creates a Vec3d from a portion of a FloatArray.

fun zero(): Vec3d

Creates a zero vector.