Chagned osg::Matrix to osg::Matrixd

This commit is contained in:
Don BURNS
2005-03-13 05:02:02 +00:00
parent bdd04bef60
commit c332d1f751
2 changed files with 11 additions and 11 deletions

View File

@@ -66,24 +66,24 @@ const char* UFOManipulator::className() const
return "UFO";
}
void UFOManipulator::setByMatrix( const osg::Matrix &mat )
void UFOManipulator::setByMatrix( const osg::Matrixd &mat )
{
_inverseMatrix = mat;
_matrix.invert( _inverseMatrix );
}
void UFOManipulator::setByInverseMatrix( const osg::Matrix &invmat)
void UFOManipulator::setByInverseMatrix( const osg::Matrixd &invmat)
{
_matrix = invmat;
_inverseMatrix.invert( _matrix );
}
osg::Matrix UFOManipulator::getMatrix() const
osg::Matrixd UFOManipulator::getMatrix() const
{
return (_offset * _matrix);
}
osg::Matrix UFOManipulator::getInverseMatrix() const
osg::Matrixd UFOManipulator::getInverseMatrix() const
{
return (_inverseMatrix * _offset);
}