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

panda/src/linmath/lpoint4_src.h

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

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