Function nanogui::project¶
Defined in File glutil.h
Function Documentation¶
-
Vector3f
nanogui::project(const Vector3f &obj, const Matrix4f &model, const Matrix4f &proj, const Vector2i &viewportSize)¶ Projects the vector
objinto the specified viewport.Performs a homogeneous transformation of a vector into “screen space”, as defined by the provided model and projection matrices, and the dimensions of the viewport.
- Parameters
obj: The vector being transformed.model: The model matrix.proj: The projection matrix.viewportSize: The dimensions of the viewport to project into.