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 DMat4, DAffine3, or similar return a full view transform (rotation and translation). Functions returning DMat3, or DQuat return only the view rotation.

Functionsยง

look_at_affine3
Returns an DAffine3 view transform from eye, focal point, and up.
look_at_mat3
Returns a DMat3 view rotation (no translation) from eye, focal point, and up.
look_at_mat4
Returns a DMat4 view matrix from eye, focal point, and up.
look_at_quat
Returns a DQuat view rotation from eye, focal point, and up.
look_to_affine3
Returns an DAffine3 view transform from eye, forward direction, and up.
look_to_mat3
Returns a DMat3 view rotation (no translation) from direction and up.
look_to_mat4
Returns a DMat4 view matrix from eye, forward direction, and up.
look_to_quat
Returns a DQuat view rotation from direction and up.