Get the pose of a single view.
Arguments
Name | Type | Description |
view | number |
The view index.
|
Returns
Name | Type | Description |
x | number |
The x position of the viewer, in meters.
|
y | number |
The y position of the viewer, in meters.
|
z | number |
The z position of the viewer, in meters.
|
angle | number |
The number of radians the viewer is rotated around its axis of rotation.
|
ax | number |
The x component of the axis of rotation.
|
ay | number |
The y component of the axis of rotation.
|
az | number |
The z component of the axis of rotation.
|
Arguments
Name | Type | Description |
view | number |
The view index.
|
matrix | Mat4 |
The matrix to fill with the view pose.
|
invert | boolean |
Whether the matrix should be inverted.
|
Returns
Name | Type | Description |
matrix | Mat4 |
The matrix containing the view pose.
|
See also