rotateVector

fun rotateVector(v3: FloatArray, out: FloatArray, offset: Int = 0)

Rotates a 3D vector in eye position using this quaternion and stores the result in the provided array.

Parameters

v3

The input vector to rotate x, y, z in eye position..

out

The array to store the rotated vector.

offset

The offset in the output array to store the result.


fun rotateVector(x: Float, y: Float, z: Float, out: FloatArray, offset: Int = 0)

Rotates a 3D vector in eye position using this quaternion and stores the result in the provided array.

Parameters

x

The x-coordinate of the input vector in eye position.

y

The y-coordinate of the input vector in eye position.

z

The z-coordinate of the input vector in eye position.

out

The array to store the rotated vector.

offset

The offset in the output array to store the result.