MCPcopy Create free account
hub / github.com/OctoMap/octomap / getProjectionMatrix

Method getProjectionMatrix

octovis/src/extern/QGLViewer/camera.cpp:621–626  ·  view source on GitHub ↗

! Fills \p m with the Camera projection matrix values. Based on computeProjectionMatrix() to make sure the Camera projection matrix is up to date. This matrix only reflects the Camera's internal parameters and it may differ from the \c GL_PROJECTION matrix retrieved using \c glGetDoublev(GL_PROJECTION_MATRIX, m). It actually represents the state of the \c GL_PROJECTION after QGLViewer::preDr

Source from the content-addressed store, hash-verified

619
620 See also getModelViewMatrix() and setFromProjectionMatrix(). */
621void Camera::getProjectionMatrix(GLdouble m[16]) const
622{
623 computeProjectionMatrix();
624 for (unsigned short i=0; i<16; ++i)
625 m[i] = projectionMatrix_[i];
626}
627
628/*! Overloaded getProjectionMatrix(GLdouble m[16]) method using a \c GLfloat array instead. */
629void Camera::getProjectionMatrix(GLfloat m[16]) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected