Skip to content
Select language:English

MCL 1.3.5

object Companion

Functions

fun unitX(): Vec2d

Creates a unit vector along the X-axis.

fun unitY(): Vec2d

Creates a unit vector along the Y-axis.

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

Creates a Vec2d from a portion of a DoubleArray.

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

Creates a Vec2d from a portion of a FloatArray.

fun zero(): Vec2d

Creates a zero vector.