Added Matrix*::getRotate()/setRotate(Quat), deprecating Matrix*::get(Quat&), Matrix*::set(Quat&)

This commit is contained in:
Robert Osfield
2006-07-31 17:31:21 +00:00
parent 28cf404a25
commit 564ee34f76
20 changed files with 99 additions and 80 deletions

View File

@@ -35,11 +35,8 @@ class ApplyMatrixVisitor : public NodeVisitor
virtual void apply(CameraView& cv)
{
Quat rotation;
_matrix.get(rotation);
cv.setPosition(_matrix.getTrans());
cv.setAttitude(rotation);
cv.setAttitude(_matrix.getRotate());
}
virtual void apply(MatrixTransform& mt)
@@ -49,11 +46,8 @@ class ApplyMatrixVisitor : public NodeVisitor
virtual void apply(PositionAttitudeTransform& pat)
{
Quat rotation;
_matrix.get(rotation);
pat.setPosition(_matrix.getTrans());
pat.setAttitude(rotation);
pat.setAttitude(_matrix.getRotate());
}
osg::Matrix _matrix;