mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
added multiply by scalar
This commit is contained in:
parent
70cc513ea8
commit
5ae60423ec
@ -92,6 +92,26 @@ FLOATNAME(LRotation)(FLOATTYPE h, FLOATTYPE p, FLOATTYPE r) {
|
||||
set_hpr(FLOATNAME(LVecBase3)(h, p, r));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: LRotation::rotation * scalar
|
||||
// Access: Public
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE_LINMATH FLOATNAME(LRotation) FLOATNAME(LRotation)::
|
||||
operator * (FLOATTYPE scalar) const {
|
||||
return FLOATNAME(LVecBase4)::operator * (scalar);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: LRotation::rotation / scalar
|
||||
// Access: Public
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE_LINMATH FLOATNAME(LRotation) FLOATNAME(LRotation)::
|
||||
operator / (FLOATTYPE scalar) const {
|
||||
return FLOATNAME(LVecBase4)::operator / (scalar);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: LRotation::operator *
|
||||
// Access: public
|
||||
|
@ -30,6 +30,9 @@ PUBLISHED:
|
||||
INLINE_LINMATH FLOATNAME(LRotation)(const FLOATNAME(LMatrix4) &);
|
||||
INLINE_LINMATH FLOATNAME(LRotation)(FLOATTYPE, FLOATTYPE, FLOATTYPE);
|
||||
|
||||
INLINE_LINMATH FLOATNAME(LRotation) operator * (FLOATTYPE scalar) const;
|
||||
INLINE_LINMATH FLOATNAME(LRotation) operator / (FLOATTYPE scalar) const;
|
||||
|
||||
INLINE_LINMATH FLOATNAME(LRotation)
|
||||
operator*(const FLOATNAME(LRotation)& other) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user