added multiply by scalar

This commit is contained in:
Dave Schuyler 2006-02-02 23:25:29 +00:00
parent 70cc513ea8
commit 5ae60423ec
2 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -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;