00001 // Filename: lorientation_src.h 00002 // Created by: frang, charles (23Jun00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 //////////////////////////////////////////////////////////////////////// 00020 // Class : LOrientation 00021 // Description : This is a unit quaternion representing an orientation. 00022 //////////////////////////////////////////////////////////////////////// 00023 class EXPCL_PANDA FLOATNAME(LOrientation) : public FLOATNAME(LQuaternion) { 00024 PUBLISHED: 00025 INLINE_LINMATH FLOATNAME(LOrientation)(); 00026 INLINE_LINMATH FLOATNAME(LOrientation)(const FLOATNAME(LQuaternion)&); 00027 INLINE_LINMATH FLOATNAME(LOrientation)(FLOATTYPE, FLOATTYPE, FLOATTYPE, FLOATTYPE); 00028 INLINE_LINMATH FLOATNAME(LOrientation)(const FLOATNAME(LVector3) &, float); 00029 INLINE_LINMATH FLOATNAME(LOrientation)(const FLOATNAME(LMatrix3) &); 00030 INLINE_LINMATH FLOATNAME(LOrientation)(const FLOATNAME(LMatrix4) &); 00031 00032 INLINE_LINMATH FLOATNAME(LOrientation) 00033 operator *(const FLOATNAME(LQuaternion)& other) const; 00034 00035 INLINE_LINMATH FLOATNAME(LOrientation) 00036 operator *(const FLOATNAME(LOrientation)& other) const; 00037 00038 public: 00039 static TypeHandle get_class_type() { 00040 return _type_handle; 00041 } 00042 static void init_type(); 00043 private: 00044 static TypeHandle _type_handle; 00045 }; 00046 00047 #include "lorientation_src.I"