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…
Reference in New Issue