Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/linmath/lvector4_src.h

Go to the documentation of this file.
00001 // Filename: lvector4_src.h
00002 // Created by:  drose (08Mar00)
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 : LVector4
00021 // Description : This is a four-component vector distance.
00022 ////////////////////////////////////////////////////////////////////
00023 class EXPCL_PANDA FLOATNAME(LVector4) : public FLOATNAME(LVecBase4) {
00024 PUBLISHED:
00025   INLINE_LINMATH FLOATNAME(LVector4)();
00026   INLINE_LINMATH FLOATNAME(LVector4)(const FLOATNAME(LVecBase4) &copy);
00027   INLINE_LINMATH FLOATNAME(LVector4) &operator = (const FLOATNAME(LVecBase4) &copy);
00028   INLINE_LINMATH FLOATNAME(LVector4) &operator = (FLOATTYPE fill_value);
00029   INLINE_LINMATH FLOATNAME(LVector4)(FLOATTYPE fill_value);
00030   INLINE_LINMATH FLOATNAME(LVector4)(FLOATTYPE x, FLOATTYPE y, FLOATTYPE z, FLOATTYPE w);
00031 
00032   INLINE_LINMATH static const FLOATNAME(LVector4) &zero();
00033   INLINE_LINMATH static const FLOATNAME(LVector4) &unit_x();
00034   INLINE_LINMATH static const FLOATNAME(LVector4) &unit_y();
00035   INLINE_LINMATH static const FLOATNAME(LVector4) &unit_z();
00036   INLINE_LINMATH static const FLOATNAME(LVector4) &unit_w();
00037 
00038   INLINE_LINMATH FLOATNAME(LVector4) operator - () const;
00039 
00040   INLINE_LINMATH FLOATNAME(LVecBase4) operator + (const FLOATNAME(LVecBase4) &other) const;
00041   INLINE_LINMATH FLOATNAME(LVector4)  operator + (const FLOATNAME(LVector4) &other) const;
00042 
00043   INLINE_LINMATH FLOATNAME(LVecBase4) operator - (const FLOATNAME(LVecBase4) &other) const;
00044   INLINE_LINMATH FLOATNAME(LVector4)  operator - (const FLOATNAME(LVector4) &other) const;
00045 
00046   INLINE_LINMATH FLOATTYPE length() const;
00047   INLINE_LINMATH FLOATTYPE length_squared() const;
00048   INLINE_LINMATH bool normalize();
00049   INLINE_LINMATH FLOATNAME(LVector4) operator * (FLOATTYPE scalar) const;
00050   INLINE_LINMATH FLOATNAME(LVector4) operator / (FLOATTYPE scalar) const;
00051 
00052 public:
00053   static TypeHandle get_class_type() {
00054     return _type_handle;
00055   }
00056   static void init_type();
00057 
00058 private:
00059   static TypeHandle _type_handle;
00060 };
00061 
00062 #include "lvector4_src.I"

Generated on Fri May 2 00:40:19 2003 for Panda by doxygen1.3