Skip to main content

Module view

Module view 

Source
Expand description

View (camera) constructors for right-handed world coordinate systems.

Every function transforms world space points into a right-handed Y-up view space with X-right and -Z-forward.

  • look_at_* targets a focal point (center)
  • look_to_* targets a forward direction (dir)

Functions returning Mat4, Affine3, Affine3A, or similar return a full view transform (rotation and translation). Functions returning Mat3, Mat3A, or Quat return only the view rotation.

Functionsยง

look_at_affine3
Returns an Affine3 view transform from eye, focal point, and up.
look_at_affine3a
Returns an Affine3A view transform from eye, focal point, and up.
look_at_mat3
Returns a Mat3 view rotation (no translation) from eye, focal point, and up.
look_at_mat4
Returns a Mat4 view matrix from eye, focal point, and up.
look_at_mat3a
Returns a Mat3A view rotation (no translation) from eye, focal point, and up.
look_at_quat
Returns a Quat view rotation from eye, focal point, and up.
look_to_affine3
Returns an Affine3 view transform from eye, forward direction, and up.
look_to_affine3a
Returns an Affine3A view transform from eye, forward direction, and up.
look_to_mat3
Returns a Mat3 view rotation (no translation) from direction and up.
look_to_mat4
Returns a Mat4 view matrix from eye, forward direction, and up.
look_to_mat3a
Returns a Mat3A view rotation (no translation) from direction and up.
look_to_quat
Returns a Quat view rotation from direction and up.