mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
add missing basic operators to quaternion
This commit is contained in:
parent
75fb3803be
commit
2483769500
@ -86,6 +86,46 @@ operator - () const {
|
|||||||
return FLOATNAME(LVecBase4)::operator - ();
|
return FLOATNAME(LVecBase4)::operator - ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: LQuaternion::quaternion + quaternion
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE_LINMATH FLOATNAME(LQuaternion) FLOATNAME(LQuaternion)::
|
||||||
|
operator + (const FLOATNAME(LQuaternion) &other) const {
|
||||||
|
return FLOATNAME(LVecBase4)::operator + (other);
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: LQuaternion::quaternion - quaternion
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE_LINMATH FLOATNAME(LQuaternion) FLOATNAME(LQuaternion)::
|
||||||
|
operator - (const FLOATNAME(LQuaternion) &other) const {
|
||||||
|
return FLOATNAME(LVecBase4)::operator - (other);
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: LQuaternion::quaternion * scalar
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE_LINMATH FLOATNAME(LQuaternion) FLOATNAME(LQuaternion)::
|
||||||
|
operator * (FLOATTYPE scalar) const {
|
||||||
|
return FLOATNAME(LVecBase4)::operator * (scalar);
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: LQuaternion::quaternion / scalar
|
||||||
|
// Access: Public
|
||||||
|
// Description:
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
INLINE_LINMATH FLOATNAME(LQuaternion) FLOATNAME(LQuaternion)::
|
||||||
|
operator / (FLOATTYPE scalar) const {
|
||||||
|
return FLOATNAME(LVecBase4)::operator / (scalar);
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: LQuaternion::Multiply Operator
|
// Function: LQuaternion::Multiply Operator
|
||||||
// Access: public
|
// Access: public
|
||||||
|
@ -36,6 +36,14 @@ PUBLISHED:
|
|||||||
|
|
||||||
INLINE_LINMATH FLOATNAME(LQuaternion) operator - () const;
|
INLINE_LINMATH FLOATNAME(LQuaternion) operator - () const;
|
||||||
|
|
||||||
|
INLINE_LINMATH FLOATNAME(LQuaternion)
|
||||||
|
operator + (const FLOATNAME(LQuaternion) &other) const;
|
||||||
|
INLINE_LINMATH FLOATNAME(LQuaternion)
|
||||||
|
operator - (const FLOATNAME(LQuaternion) &other) const;
|
||||||
|
|
||||||
|
INLINE_LINMATH FLOATNAME(LQuaternion) operator * (FLOATTYPE scalar) const;
|
||||||
|
INLINE_LINMATH FLOATNAME(LQuaternion) operator / (FLOATTYPE scalar) const;
|
||||||
|
|
||||||
INLINE_LINMATH FLOATNAME(LQuaternion) operator *(const FLOATNAME(LQuaternion) &) const;
|
INLINE_LINMATH FLOATNAME(LQuaternion) operator *(const FLOATNAME(LQuaternion) &) const;
|
||||||
INLINE_LINMATH FLOATNAME(LQuaternion)& operator *=(const FLOATNAME(LQuaternion) &);
|
INLINE_LINMATH FLOATNAME(LQuaternion)& operator *=(const FLOATNAME(LQuaternion) &);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user