Function translate

Function Documentation

Matrix4f nanogui::translate(const Vector3f &v)

Construct homogeneous coordinate translation matrix.

Returns a 3D homogeneous coordinate matrix that translates the X, Y, and Z components by the corresponding entries of the 3D vector v. The w component is left unchanged

Parameters
  • v: The vector representing the translation for each axis.