/** * @brief Sets the projection matrix as a orthographic matrix. * * Creates an orthographic projection matrix with the given parameters and sets as the projection matrix. * @param left Left plane for orthographic view. * @param right Right plane for orthographic view. * @param bottom Bottom plane for orthographic view. * @param top Top lane for orthographic view. * @param near_plane Near plane for orthographic view. * @param far_plane Far plane for orthographic view. * @return The created orthographic matrix. */ Eigen::Matrix4f setOrthographicMatrix (float left, float right, float bottom, float top, float near_plane, float far_plane) { Eigen::Matrix4f proj = createOrthographicMatrix(left, right, bottom, top, near_plane, far_plane); setProjectionMatrix(proj); use_perspective = false; return proj; }
/** * @brief Sets the trackball projection matrix as orthographic. * @param left Left plane for orthographic view. * @param right Right plane for orthographic view. * @param bottom Bottom plane for orthographic view. * @param top Top lane for orthographic view. * @param near Near plane for orthographic view. * @param far Far plane for orthographic view. * @return Return the created orthographic matrix. */ Eigen::Matrix4f setTrackballOrthographicMatrix (float left, float right, float bottom, float top, float near_plane, float far_plane) { Eigen::Matrix4f proj = createOrthographicMatrix(left, right, bottom, top, near_plane, far_plane); setTrackballProjectionMatrix(proj); return proj; }