Function nanogui::lookAt¶
Defined in File glutil.h
Function Documentation¶
-
Matrix4f
nanogui
::
lookAt
(const Vector3f &origin, const Vector3f &target, const Vector3f &up)¶ Creates a “look at” matrix that describes the position and orientation of e.g. a camera.
Warning
These are used to form an orthonormal basis. The first basis vector is defined as
f = (target - origin).normalized()
.- Parameters
origin
: The position of the camera.target
: The gaze target of the camera.up
: The up vector of the camera.