Skip to content
Select language:English

MCL 1.3.5

object Companion

Functions

fun unitW(): Vec4f

Creates a unit vector along the W-axis.

fun unitX(): Vec4f

Creates a unit vector along the X-axis.

fun unitY(): Vec4f

Creates a unit vector along the Y-axis.

fun unitZ(): Vec4f

Creates a unit vector along the Z-axis.

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

Creates a Vec4f from a portion of a DoubleArray.

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

Creates a Vec4f from a portion of a FloatArray.

fun zero(): Vec4f

Creates a zero vector.