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
220  {
221  return v.Length();
222 }
float Length() const
Definition: point4.h:208
float FLength ( const Point4 v)
inline
224  {
225  return v.FLength();
226 }
float FLength() const
Definition: point4.h:212
float LengthSquared ( const Point4 v)
inline
228  {
229  return v.LengthSquared();
230 }
float LengthSquared() const
Definition: point4.h:216
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  DbgAssert(f != 0.0f);
306  float invF = 1.0f / f; // Mimic 2019 behavior
307  return(Point4(a.x * invF, a.y * invF, a.z * invF, a.w * invF));
308  }
Definition: point4.h:41
float y
Definition: point4.h:45
float x
Definition: point4.h:45
#define DbgAssert(expr)
Definition: assert1.h:72
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.
312  {
313  return(Point4(a.x+f, a.y+f, a.z+f, a.w+f));
314  }
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
325  {
326  return(a.x*b.x+a.y*b.y+a.z*b.z+a.w*b.w);
327 }
float y
Definition: point4.h:45
float x
Definition: point4.h:45
float z
Definition: point4.h:45
float w
Definition: point4.h:45