Matrix Utility Functions
[Base FunctionsMath]

Matrix Functions

Matrix utility functions to create and analyze special kinds of matrices.



bool OSG::MatrixOrthogonal (OSG::Matrix &result, OSG::Real32 rLeft, OSG::Real32 rRight, OSG::Real32 rBottom, OSG::Real32 rTop, OSG::Real32 rNear, OSG::Real32 rFar)
bool OSG::MatrixFrustum (OSG::Matrixr &result, OSG::Real rLeft, OSG::Real rRight, OSG::Real rBottom, OSG::Real rTop, OSG::Real rNear, OSG::Real rFar)
bool OSG::MatrixPerspective (OSG::Matrixr &result, OSG::Real rFovy, OSG::Real rAspect, OSG::Real rNear, OSG::Real rFar)
bool OSG::MatrixStereoPerspective (OSG::Matrixr &projection, OSG::Matrixr &projtrans, OSG::Real rFovy, OSG::Real rAspect, OSG::Real rNear, OSG::Real rFar, OSG::Real rZeroparallax, OSG::Real rEyedistance, OSG::Real rWhicheye, OSG::Real rOverlap)
bool OSG::MatrixLookAt (OSG::Matrix &result, OSG::Real32 fromx, OSG::Real32 fromy, OSG::Real32 fromz, OSG::Real32 atx, OSG::Real32 aty, OSG::Real32 atz, OSG::Real32 upx, OSG::Real32 upy, OSG::Real32 upz)
bool OSG::MatrixLookAt (OSG::Matrix &result, OSG::Pnt3f from, OSG::Pnt3f at, OSG::Vec3f up)
bool OSG::MatrixProjection (OSG::Matrix &result, OSG::Real32 rLeft, OSG::Real32 rRight, OSG::Real32 rBottom, OSG::Real32 rTop, OSG::Real32 rNear, OSG::Real32 rFar)
bool OSG::TransformationMatrix::MatrixOrthogonal (OSG::Matrix &result, OSG::Real32 rLeft, OSG::Real32 rRight, OSG::Real32 rBottom, OSG::Real32 rTop, OSG::Real32 rNear, OSG::Real32 rFar)
bool OSG::TransformationMatrix::MatrixFrustum (OSG::Matrixr &result, OSG::Real rLeft, OSG::Real rRight, OSG::Real rBottom, OSG::Real rTop, OSG::Real rNear, OSG::Real rFar)
bool OSG::TransformationMatrix::MatrixPerspective (OSG::Matrixr &result, OSG::Real rFovy, OSG::Real rAspect, OSG::Real rNear, OSG::Real rFar)
bool OSG::TransformationMatrix::MatrixStereoPerspective (OSG::Matrixr &projection, OSG::Matrixr &projtrans, OSG::Real rFovy, OSG::Real rAspect, OSG::Real rNear, OSG::Real rFfar, OSG::Real rZeroparallax, OSG::Real rEyedistance, OSG::Real rWhicheye, OSG::Real rOverlap)
bool OSG::TransformationMatrix::MatrixLookAt (OSG::Matrix &result, OSG::Real32 fromx, OSG::Real32 fromy, OSG::Real32 fromz, OSG::Real32 atx, OSG::Real32 aty, OSG::Real32 atz, OSG::Real32 upx, OSG::Real32 upy, OSG::Real32 upz)
bool OSG::TransformationMatrix::MatrixLookAt (OSG::Matrix &result, OSG::Pnt3f from, OSG::Pnt3f at, OSG::Vec3f up)
bool OSG::TransformationMatrix::MatrixProjection (OSG::Matrix &result, OSG::Real32 rLeft, OSG::Real32 rRight, OSG::Real32 rBottom, OSG::Real32 rTop, OSG::Real32 rNear, OSG::Real32 rFar)

Detailed Description

ToDo


Function Documentation

bool MatrixOrthogonal ( OSG::Matrix result,
OSG::Real32  rLeft,
OSG::Real32  rRight,
OSG::Real32  rBottom,
OSG::Real32  rTop,
OSG::Real32  rNear,
OSG::Real32  rFar 
)
bool MatrixFrustum ( OSG::Matrixr result,
OSG::Real  rLeft,
OSG::Real  rRight,
OSG::Real  rBottom,
OSG::Real  rTop,
OSG::Real  rNear,
OSG::Real  rFar 
)
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!

Referenced by OSG::OffCenterPerspectiveCamera::getProjection(), OSG::ProjectionCameraDecorator::getProjection(), and OSG::PerspectiveCamera::getProjection().

bool MatrixPerspective ( OSG::Matrixr result,
OSG::Real  rFovy,
OSG::Real  rAspect,
OSG::Real  rNear,
OSG::Real  rFar 
)
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!

Referenced by OSG::TrapezoidalShadowMapEngine::handlePointLightEnter(), OSG::ShaderShadowMapEngine::handlePointLightEnter(), OSG::ShaderShadowMapEngine::handleSpotLightEnter(), OSG::TrapezoidalShadowMapEngine::handleSpotLightEnter(), and OSG::SimpleShadowMapEngine::setupCamera().

bool MatrixStereoPerspective ( OSG::Matrixr projection,
OSG::Matrixr projtrans,
OSG::Real  rFovy,
OSG::Real  rAspect,
OSG::Real  rNear,
OSG::Real  rFar,
OSG::Real  rZeroparallax,
OSG::Real  rEyedistance,
OSG::Real  rWhicheye,
OSG::Real  rOverlap 
)
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!

Referenced by OSG::ShearedStereoCameraDecorator::getProjection().

bool MatrixLookAt ( OSG::Matrix result,
OSG::Real32  fromx,
OSG::Real32  fromy,
OSG::Real32  fromz,
OSG::Real32  atx,
OSG::Real32  aty,
OSG::Real32  atz,
OSG::Real32  upx,
OSG::Real32  upy,
OSG::Real32  upz 
)
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!

Referenced by OSG::PerspectiveShadowMapHandler::calcPerspectiveSpot(), OSG::FlyEngine::getMatrix(), OSG::BalancedMultiWindow::preloadCache(), OSG::NoneEngine::set(), OSG::TrackballEngine::set(), OSG::SimpleShadowMapEngine::setupCamera(), and OSG::ShadowStage::updateLights().

bool MatrixLookAt ( OSG::Matrix result,
OSG::Pnt3f  from,
OSG::Pnt3f  at,
OSG::Vec3f  up 
)
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!
bool MatrixProjection ( OSG::Matrix result,
OSG::Real32  rLeft,
OSG::Real32  rRight,
OSG::Real32  rBottom,
OSG::Real32  rTop,
OSG::Real32  rNear,
OSG::Real32  rFar 
)
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!
template<class ValueTypeT>
bool MatrixOrthogonal ( OSG::Matrix result,
OSG::Real32  rLeft,
OSG::Real32  rRight,
OSG::Real32  rBottom,
OSG::Real32  rTop,
OSG::Real32  rNear,
OSG::Real32  rFar 
) [related, inherited]
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!
template<class ValueTypeT>
bool MatrixFrustum ( OSG::Matrixr result,
OSG::Real  rLeft,
OSG::Real  rRight,
OSG::Real  rBottom,
OSG::Real  rTop,
OSG::Real  rNear,
OSG::Real  rFar 
) [related, inherited]
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!
template<class ValueTypeT>
bool MatrixPerspective ( OSG::Matrixr result,
OSG::Real  rFovy,
OSG::Real  rAspect,
OSG::Real  rNear,
OSG::Real  rFar 
) [related, inherited]
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!
template<class ValueTypeT>
bool MatrixStereoPerspective ( OSG::Matrixr projection,
OSG::Matrixr projtrans,
OSG::Real  rFovy,
OSG::Real  rAspect,
OSG::Real  rNear,
OSG::Real  rFfar,
OSG::Real  rZeroparallax,
OSG::Real  rEyedistance,
OSG::Real  rWhicheye,
OSG::Real  rOverlap 
) [related, inherited]
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!
template<class ValueTypeT>
bool MatrixLookAt ( OSG::Matrix result,
OSG::Real32  fromx,
OSG::Real32  fromy,
OSG::Real32  fromz,
OSG::Real32  atx,
OSG::Real32  aty,
OSG::Real32  atz,
OSG::Real32  upx,
OSG::Real32  upy,
OSG::Real32  upz 
) [related, inherited]
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!
template<class ValueTypeT>
bool MatrixLookAt ( OSG::Matrix result,
OSG::Pnt3f  from,
OSG::Pnt3f  at,
OSG::Vec3f  up 
) [related, inherited]
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!
template<class ValueTypeT>
bool MatrixProjection ( OSG::Matrix result,
OSG::Real32  rLeft,
OSG::Real32  rRight,
OSG::Real32  rBottom,
OSG::Real32  rTop,
OSG::Real32  rNear,
OSG::Real32  rFar 
) [related, inherited]
Warning:
This matrix is meant to used for setting up the beacon transformation of a OSG::Camera! They are inverted compared to the similarly named OpenGl function!