world2eye

fun world2eye(worldVec: FloatArray, q: Quaternion, outEyeVec: FloatArray)

Transforms world coordinates to eye coordinates using a quaternion.

Parameters

worldVec

The world 3x1 vector

q

The quaternion representing the rotation

outEyeVec

The resulting eye 3x1 vector