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:
@@ -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]; }
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user