Pass:getViewPose

Edit

Get the pose of a single view.



Arguments

NameTypeDescription
viewnumber The view index.

Returns

NameTypeDescription
xnumber The x position of the viewer, in meters.
ynumber The y position of the viewer, in meters.
znumber The z position of the viewer, in meters.
anglenumber The number of radians the viewer is rotated around its axis of rotation.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

Arguments

NameTypeDescription
viewnumber The view index.
matrixMat4 The matrix to fill with the view pose.
invertboolean Whether the matrix should be inverted.

Returns

NameTypeDescription
matrixMat4 The matrix containing the view pose.

See also