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

panda/src/linmath/lmat_ops_src.I

Go to the documentation of this file.
00001 // Filename: lmat_ops_src.I
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 ////////////////////////////////////////////////////////////////////
00021 //     Function: LVecBase3 times LMatrix3
00022 //  Description:
00023 ////////////////////////////////////////////////////////////////////
00024 
00025 INLINE_LINMATH FLOATNAME(LVecBase3)
00026 operator * (const FLOATNAME(LVecBase3) &v, const FLOATNAME(LMatrix3) &m) {
00027   return m.xform(v);
00028 }
00029 
00030 INLINE_LINMATH FLOATNAME(LVector3)
00031 operator * (const FLOATNAME(LVector3) &v, const FLOATNAME(LMatrix3) &m) {
00032   return m.xform(v);
00033 }
00034 
00035 INLINE_LINMATH FLOATNAME(LPoint3)
00036 operator * (const FLOATNAME(LPoint3) &v, const FLOATNAME(LMatrix3) &m) {
00037   return m.xform(v);
00038 }
00039 
00040 ////////////////////////////////////////////////////////////////////
00041 //     Function: LVector2 times LMatrix3
00042 //  Description:
00043 ////////////////////////////////////////////////////////////////////
00044 
00045 INLINE_LINMATH FLOATNAME(LVector2)
00046 operator * (const FLOATNAME(LVector2) &v, const FLOATNAME(LMatrix3) &m) {
00047   return m.xform_vec(v);
00048 }
00049 
00050 ////////////////////////////////////////////////////////////////////
00051 //     Function: LPoint2 times LMatrix3
00052 //  Description:
00053 ////////////////////////////////////////////////////////////////////
00054 
00055 INLINE_LINMATH FLOATNAME(LPoint2)
00056 operator * (const FLOATNAME(LPoint2) &v, const FLOATNAME(LMatrix3) &m) {
00057   return m.xform_point(v);
00058 }
00059 
00060 
00061 ////////////////////////////////////////////////////////////////////
00062 //     Function: LVecBase4 times LMatrix4
00063 //  Description:
00064 ////////////////////////////////////////////////////////////////////
00065 
00066 INLINE_LINMATH FLOATNAME(LVecBase4)
00067 operator * (const FLOATNAME(LVecBase4) &v, const FLOATNAME(LMatrix4) &m) {
00068   return m.xform(v);
00069 }
00070 
00071 INLINE_LINMATH FLOATNAME(LVector4)
00072 operator * (const FLOATNAME(LVector4) &v, const FLOATNAME(LMatrix4) &m) {
00073   return m.xform(v);
00074 }
00075 
00076 INLINE_LINMATH FLOATNAME(LPoint4)
00077 operator * (const FLOATNAME(LPoint4) &v, const FLOATNAME(LMatrix4) &m) {
00078   return m.xform(v);
00079 }
00080 
00081 
00082 ////////////////////////////////////////////////////////////////////
00083 //     Function: LVector3 times LMatrix4
00084 //  Description:
00085 ////////////////////////////////////////////////////////////////////
00086 
00087 INLINE_LINMATH FLOATNAME(LVector3)
00088 operator * (const FLOATNAME(LVector3) &v, const FLOATNAME(LMatrix4) &m) {
00089   return m.xform_vec(v);
00090 }
00091 
00092 ////////////////////////////////////////////////////////////////////
00093 //     Function: LPoint3 times LMatrix4
00094 //  Description:
00095 ////////////////////////////////////////////////////////////////////
00096 
00097 INLINE_LINMATH FLOATNAME(LPoint3)
00098 operator * (const FLOATNAME(LPoint3) &v, const FLOATNAME(LMatrix4) &m) {
00099   return m.xform_point(v);
00100 }
00101 

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