Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

MCL 1.3.5

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

Creates a Quatd from a portion of a DoubleArray.

Starting from the given start index, the next 4 elements are read and mapped to the quaternion components in order: x, y, z, w.

Return

A new Quatd containing the selected values.

Parameters

v

The source array.

start

The starting index in the array.

Throws

if there are not enough elements from start to read 4 values.


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

Creates a Quatd from a portion of a FloatArray.

Starting from the given start index, the next 4 elements are read, converted to Double, and mapped to the quaternion components in order: x, y, z, w.

Return

A new Quatd containing the selected values.

Parameters

v

The source array.

start

The starting index in the array.

Throws

if there are not enough elements from start to read 4 values.