From c686acd92d42b2f8bbfe14989534a3ee6139f1ee Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Sat, 11 Mar 2006 00:14:09 +0000 Subject: [PATCH] added lvec4 cast --- panda/src/linmath/lrotation_src.I | 10 ++++++++++ panda/src/linmath/lrotation_src.h | 1 + 2 files changed, 11 insertions(+) diff --git a/panda/src/linmath/lrotation_src.I b/panda/src/linmath/lrotation_src.I index 03613dc5ea..626a0f6618 100644 --- a/panda/src/linmath/lrotation_src.I +++ b/panda/src/linmath/lrotation_src.I @@ -35,6 +35,16 @@ FLOATNAME(LRotation)(const FLOATNAME(LQuaternion) &c) : FLOATNAME(LQuaternion)(c) { } +//////////////////////////////////////////////////////////////////// +// Function: LRotation::Copy Constructor +// Access: public +// Description: +//////////////////////////////////////////////////////////////////// +INLINE_LINMATH FLOATNAME(LRotation):: +FLOATNAME(LRotation)(const FLOATNAME(LVecBase4) ©) : + FLOATNAME(LQuaternion)(copy) { +} + //////////////////////////////////////////////////////////////////// // Function: LRotation::Constructor // Access: public diff --git a/panda/src/linmath/lrotation_src.h b/panda/src/linmath/lrotation_src.h index f8b7e1583d..a5ac5efe99 100644 --- a/panda/src/linmath/lrotation_src.h +++ b/panda/src/linmath/lrotation_src.h @@ -24,6 +24,7 @@ class EXPCL_PANDA FLOATNAME(LRotation) : public FLOATNAME(LQuaternion) { PUBLISHED: INLINE_LINMATH FLOATNAME(LRotation)(); INLINE_LINMATH FLOATNAME(LRotation)(const FLOATNAME(LQuaternion) &); + INLINE_LINMATH FLOATNAME(LRotation)(const FLOATNAME(LVecBase4) ©); INLINE_LINMATH FLOATNAME(LRotation)(FLOATTYPE, FLOATTYPE, FLOATTYPE, FLOATTYPE); INLINE_LINMATH FLOATNAME(LRotation)(const FLOATNAME(LVector3) &, FLOATTYPE); INLINE_LINMATH FLOATNAME(LRotation)(const FLOATNAME(LMatrix3) &);