eye2world

fun eye2world(eyeVec: FloatArray, q: Quaternion, res: FloatArray)

Transforms eye coordinates to world coordinates using a quaternion.

Parameters

eyeVec

The eye 3x1 vector

q

The quaternion representing the rotation

res

The resulting world 3x1 vector


fun eye2world(xEye: Float, yEye: Float, zEye: Float, q: Quaternion, res: FloatArray)

Transforms eye coordinates to world coordinates using a quaternion.

Parameters

xEye

The x-coordinate of the eye

yEye

The y-coordinate of the eye

zEye

The z-coordinate of the eye

q

The quaternion representing the rotation

res

The resulting world 3x1 vector