Added rescale of quaternion in Matrix::set(Quat), a copy operation in osg::Quat and

extra tracking options in NodeTrackerManipulator.
This commit is contained in:
Robert Osfield
2004-08-31 09:20:31 +00:00
parent 15def16d43
commit 08017daf37
4 changed files with 79 additions and 10 deletions

View File

@@ -84,6 +84,8 @@ class SG_EXPORT Quat
makeRotate(angle1,axis1,angle2,axis2,angle3,axis3);
}
inline Quat& operator = (const Quat& v) { _v[0]=v._v[0]; _v[1]=v._v[1]; _v[2]=v._v[2]; _v[3]=v._v[3]; return *this; }
inline bool operator == (const Quat& v) const { return _v[0]==v._v[0] && _v[1]==v._v[1] && _v[2]==v._v[2] && _v[3]==v._v[3]; }
inline bool operator != (const Quat& v) const { return _v[0]!=v._v[0] || _v[1]!=v._v[1] || _v[2]!=v._v[2] || _v[3]!=v._v[3]; }

View File

@@ -35,6 +35,8 @@ class OSGGA_EXPORT NodeTrackerManipulator : public MatrixManipulator
enum TrackerMode
{
NODE_CENTER,
NODE_CENTER_AND_AZMIM_ROTATION,
NODE_CENTER_AND_AZMIM_ELEVATION_ROTATION,
NODE_CENTER_AND_ROTATION,
};