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

panda/src/linmath/lvec4_ops_src.h

Go to the documentation of this file.
00001 // Filename: lvec4_ops_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 // When possible, operators have been defined within the classes.
00020 // This file defines operator functions outside of classes where
00021 // necessary.  It also defines some convenient out-of-class wrappers
00022 // around in-class functions (like dot, length, normalize).
00023 
00024 
00025 // scalar * vec (vec * scalar is defined in class)
00026 INLINE_LINMATH FLOATNAME(LVecBase4)
00027 operator * (FLOATTYPE scalar, const FLOATNAME(LVecBase4) &a);
00028 
00029 INLINE_LINMATH FLOATNAME(LPoint4)
00030 operator * (FLOATTYPE scalar, const FLOATNAME(LPoint4) &a);
00031 
00032 INLINE_LINMATH FLOATNAME(LVector4)
00033 operator * (FLOATTYPE scalar, const FLOATNAME(LVector4) &a);
00034 
00035 
00036 // dot product
00037 INLINE_LINMATH FLOATTYPE
00038 dot(const FLOATNAME(LVecBase4) &a, const FLOATNAME(LVecBase4) &b);
00039 
00040 
00041 // Length of a vector.
00042 INLINE_LINMATH FLOATTYPE
00043 length(const FLOATNAME(LVector4) &a);
00044 
00045 
00046 // A normalized vector.
00047 INLINE_LINMATH FLOATNAME(LVector4)
00048 normalize(const FLOATNAME(LVector4) &v);
00049 
00050 
00051 #include "lvec4_ops_src.I"

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