Function nanogui::scale

Function Documentation

Matrix4f nanogui::scale(const Vector3f &v)

Construct homogeneous coordinate scaling matrix.

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

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