point4.h File Reference

point4.h File Reference
#include "GeomExport.h"
#include "maxheap.h"
#include "point3.h"
#include "assert1.h"

Classes

class  Point4
 

Functions

float Length (const Point4 &)
 
float FLength (const Point4 &)
 
float LengthSquared (const Point4 &)
 
int MaxComponent (const Point4 &)
 
int MinComponent (const Point4 &)
 
Point4 Normalize (const Point4 &)
 
Point4 FNormalize (const Point4 &)
 
Point4 CrossProd (const Point4 &a, const Point4 &b, const Point4 &c)
 
Point4 operator* (float f, const Point4 &a)
 
Point4 operator* (const Point4 &a, float f)
 
Point4 operator/ (const Point4 &a, float f)
 
Point4 operator+ (const Point4 &a, float f)
 
float DotProd (const Point4 &a, const Point4 &b)
 

Function Documentation

float Length ( const Point4 v)
inline
222  {
223  return v.Length();
224 }
float Length() const
Definition: point4.h:210
float FLength ( const Point4 v)
inline
226  {
227  return v.FLength();
228 }
float FLength() const
Definition: point4.h:214
float LengthSquared ( const Point4 v)
inline
230  {
231  return v.LengthSquared();
232 }
float LengthSquared() const
Definition: point4.h:218
int MaxComponent ( const Point4 )
int MinComponent ( const Point4 )
Point4 Normalize ( const Point4 )
Point4 FNormalize ( const Point4 )
Point4 CrossProd ( const Point4 a,
const Point4 b,
const Point4 c 
)
Point4 operator* ( float  f,
const Point4 a 
)
inline
Remarks
Returns a Point4 that is the specified Point4 multiplied by the specified float.
292  {
293  return(Point4(a.x*f, a.y*f, a.z*f, a.w*f));
294  }
Definition: point4.h:41
float y
Definition: point4.h:45
float x
Definition: point4.h:45
float z
Definition: point4.h:45
float w
Definition: point4.h:45
Point4 operator* ( const Point4 a,
float  f 
)
inline
Remarks
Returns a Point4 that is the specified Point4 multiplied by the specified float.
298  {
299  return(Point4(a.x*f, a.y*f, a.z*f, a.w*f));
300  }
Definition: point4.h:41
float y
Definition: point4.h:45
float x
Definition: point4.h:45
float z
Definition: point4.h:45
float w
Definition: point4.h:45
Point4 operator/ ( const Point4 a,
float  f 
)
inline
Remarks
Returns a Point4 that is the specified Point4 divided by the specified float.
304  {
305  assert( f != 0.0f );
306  return(Point4(a.x/f, a.y/f, a.z/f, a.w/f));
307  }
Definition: point4.h:41
float y
Definition: point4.h:45
float x
Definition: point4.h:45
#define assert(expr)
Definition: assert1.h:71
float z
Definition: point4.h:45
float w
Definition: point4.h:45
Point4 operator+ ( const Point4 a,
float  f 
)
inline
Remarks
Returns a Point4 that is the specified Point4 with the specified floating point valued added to each component x, y, z and w.
311  {
312  return(Point4(a.x+f, a.y+f, a.z+f, a.w+f));
313  }
Definition: point4.h:41
float y
Definition: point4.h:45
float x
Definition: point4.h:45
float z
Definition: point4.h:45
float w
Definition: point4.h:45
float DotProd ( const Point4 a,
const Point4 b 
)
inline
324  {
325  return(a.x*b.x+a.y*b.y+a.z*b.z+a.w*b.w);
326 }
float y
Definition: point4.h:45
float x
Definition: point4.h:45
float z
Definition: point4.h:45
float w
Definition: point4.h:45