Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HPoint Class Reference

#include <IceHPoint.h>

Inheritance diagram for HPoint:
Point

Public Member Functions

inline_ HPoint ()
 Empty constructor. More...
 
inline_ HPoint (float _x, float _y, float _z, float _w=0.0f)
 Constructor from floats. More...
 
inline_ HPoint (const float f[4])
 Constructor from array. More...
 
inline_ HPoint (const Point &p, float _w=0.0f)
 Constructor from a Point. More...
 
inline_ ~HPoint ()
 Destructor. More...
 
inline_ HPointZero ()
 Clear the point. More...
 
inline_ HPointSet (float _x, float _y, float _z, float _w)
 Assignment from values. More...
 
inline_ HPointSet (const float f[4])
 Assignment from array. More...
 
inline_ HPointSet (const HPoint &src)
 Assignment from another h-point. More...
 
inline_ HPointAdd (float _x, float _y, float _z, float _w)
 Add a vector. More...
 
inline_ HPointAdd (const float f[4])
 Add a vector. More...
 
inline_ HPointSub (float _x, float _y, float _z, float _w)
 Subtract a vector. More...
 
inline_ HPointSub (const float f[4])
 Subtract a vector. More...
 
inline_ HPointMul (float s)
 Multiplies by a scalar. More...
 
float Min () const
 Returns MIN(x, y, z, w);. More...
 
float Max () const
 Returns MAX(x, y, z, w);. More...
 
HPointMin (const HPoint &p)
 Sets each element to be componentwise minimum. More...
 
HPointMax (const HPoint &p)
 Sets each element to be componentwise maximum. More...
 
inline_ float SquareMagnitude () const
 Computes square magnitude. More...
 
inline_ float Magnitude () const
 Computes magnitude. More...
 
inline_ HPointNormalize ()
 Normalize the vector. More...
 
inline_ HPoint operator- () const
 Operator for HPoint Negate = - HPoint;. More...
 
inline_ HPoint operator+ (const HPoint &p) const
 Operator for HPoint Plus = HPoint + HPoint;. More...
 
inline_ HPoint operator- (const HPoint &p) const
 Operator for HPoint Minus = HPoint - HPoint;. More...
 
inline_ HPoint operator* (const HPoint &p) const
 Operator for HPoint Mul = HPoint * HPoint;. More...
 
inline_ HPoint operator* (float s) const
 Operator for HPoint Scale = HPoint * float;. More...
 
inline_ HPoint operator/ (const HPoint &p) const
 Operator for HPoint Div = HPoint / HPoint;. More...
 
inline_ HPoint operator/ (float s) const
 Operator for HPoint Scale = HPoint / float;. More...
 
inline_ float operator| (const HPoint &p) const
 Operator for float DotProd = HPoint | HPoint;. More...
 
inline_ HPointoperator+= (const HPoint &p)
 Operator for HPoint += HPoint;. More...
 
inline_ HPointoperator+= (float s)
 Operator for HPoint += float;. More...
 
inline_ HPointoperator-= (const HPoint &p)
 Operator for HPoint -= HPoint;. More...
 
inline_ HPointoperator-= (float s)
 Operator for HPoint -= float;. More...
 
inline_ HPointoperator*= (const HPoint &p)
 Operator for HPoint *= HPoint;. More...
 
inline_ HPointoperator*= (float s)
 Operator for HPoint *= float;. More...
 
inline_ HPointoperator/= (const HPoint &p)
 Operator for HPoint /= HPoint;. More...
 
inline_ HPointoperator/= (float s)
 Operator for HPoint /= float;. More...
 
Point operator* (const Matrix3x3 &mat) const
 Operator for Point Mul = HPoint * Matrix3x3;. More...
 
HPoint operator* (const Matrix4x4 &mat) const
 Operator for HPoint Mul = HPoint * Matrix4x4;. More...
 
HPointoperator*= (const Matrix4x4 &mat)
 Operator for HPoint *= Matrix4x4. More...
 
inline_ bool operator== (const HPoint &p) const
 Operator for "if(HPoint==HPoint)". More...
 
inline_ bool operator!= (const HPoint &p) const
 Operator for "if(HPoint!=HPoint)". More...
 
- Public Member Functions inherited from Point
inline_ Point ()
 Empty constructor. More...
 
inline_ Point (float _x, float _y, float _z)
 Constructor from a single float. More...
 
inline_ Point (const float f[3])
 Constructor from array. More...
 
inline_ Point (const Point &p)
 Copy constructor. More...
 
inline_ ~Point ()
 Destructor. More...
 
inline_ PointZero ()
 Clears the vector. More...
 
inline_ PointSetPlusInfinity ()
 
inline_ PointSetMinusInfinity ()
 
PointPositiveUnitRandomVector ()
 Sets positive unit random vector. More...
 
PointUnitRandomVector ()
 Sets unit random vector. More...
 
inline_ PointSet (float _x, float _y, float _z)
 Assignment from values. More...
 
inline_ PointSet (const float f[3])
 Assignment from array. More...
 
inline_ PointSet (const Point &src)
 Assignment from another point. More...
 
inline_ PointAdd (const Point &p)
 Adds a vector. More...
 
inline_ PointAdd (float _x, float _y, float _z)
 Adds a vector. More...
 
inline_ PointAdd (const float f[3])
 Adds a vector. More...
 
inline_ PointAdd (const Point &p, const Point &q)
 Adds vectors. More...
 
inline_ PointSub (const Point &p)
 Subtracts a vector. More...
 
inline_ PointSub (float _x, float _y, float _z)
 Subtracts a vector. More...
 
inline_ PointSub (const float f[3])
 Subtracts a vector. More...
 
inline_ PointSub (const Point &p, const Point &q)
 Subtracts vectors. More...
 
inline_ PointNeg ()
 this = -this More...
 
inline_ PointNeg (const Point &a)
 this = -a More...
 
inline_ PointMult (float s)
 Multiplies by a scalar. More...
 
inline_ PointMult (const Point &a, float scalar)
 this = a * scalar More...
 
inline_ PointMac (const Point &a, const Point &b, float scalar)
 this = a + b * scalar More...
 
inline_ PointMac (const Point &a, float scalar)
 this = this + a * scalar More...
 
inline_ PointMsc (const Point &a, const Point &b, float scalar)
 this = a - b * scalar More...
 
inline_ PointMsc (const Point &a, float scalar)
 this = this - a * scalar More...
 
inline_ PointMac2 (const Point &a, const Point &b, float scalarb, const Point &c, float scalarc)
 this = a + b * scalarb + c * scalarc More...
 
inline_ PointMsc2 (const Point &a, const Point &b, float scalarb, const Point &c, float scalarc)
 this = a - b * scalarb - c * scalarc More...
 
inline_ PointMult (const Matrix3x3 &mat, const Point &a)
 this = mat * a More...
 
inline_ PointMult2 (const Matrix3x3 &mat1, const Point &a1, const Matrix3x3 &mat2, const Point &a2)
 this = mat1 * a1 + mat2 * a2 More...
 
inline_ PointMac (const Matrix3x3 &mat, const Point &a)
 this = this + mat * a More...
 
inline_ PointTransMult (const Matrix3x3 &mat, const Point &a)
 this = transpose(mat) * a More...
 
inline_ PointLerp (const Point &a, const Point &b, float t)
 Linear interpolate between two vectors: this = a + t * (b - a) More...
 
inline_ PointHerp (const Point &p0, const Point &p1, const Point &p2, const Point &p3, float t)
 
inline_ PointTransform (const Point &r, const Matrix3x3 &rotpos, const Point &linpos)
 this = rotpos * r + linpos More...
 
inline_ PointInvTransform (const Point &r, const Matrix3x3 &rotpos, const Point &linpos)
 this = trans(rotpos) * (r - linpos) More...
 
inline_ float Min () const
 Returns MIN(x, y, z);. More...
 
inline_ float Max () const
 Returns MAX(x, y, z);. More...
 
inline_ PointMin (const Point &p)
 Sets each element to be componentwise minimum. More...
 
inline_ PointMax (const Point &p)
 Sets each element to be componentwise maximum. More...
 
inline_ PointClamp (float min, float max)
 Clamps each element. More...
 
inline_ float SquareMagnitude () const
 Computes square magnitude. More...
 
inline_ float Magnitude () const
 Computes magnitude. More...
 
inline_ float Volume () const
 Computes volume. More...
 
inline_ bool ApproxZero () const
 Checks the point is near zero. More...
 
inline_ bool IsZero () const
 Tests for exact zero vector. More...
 
inline_ bool IsValid () const
 Checks point validity. More...
 
void Tweak (udword coord_mask, udword tweak_mask)
 Slighty moves the point. More...
 
inline_ void TweakBigger ()
 Slighty moves the point out. More...
 
inline_ void TweakSmaller ()
 Slighty moves the point in. More...
 
inline_ PointNormalize ()
 Normalizes the vector. More...
 
inline_ PointSetLength (float length)
 Sets vector length. More...
 
inline_ PointClampLength (float limit_length)
 Clamps vector length. More...
 
inline_ float Distance (const Point &b) const
 Computes distance to another point. More...
 
inline_ float SquareDistance (const Point &b) const
 Computes square distance to another point. More...
 
inline_ float Dot (const Point &p) const
 Dot product dp = this|a. More...
 
inline_ PointCross (const Point &a, const Point &b)
 Cross product this = a x b. More...
 
inline_ udword VectorCode () const
 Vector code ( bitmask = sign(z) | sign(y) | sign(x) ) More...
 
inline_ PointComponent LargestAxis () const
 Returns largest axis. More...
 
inline_ PointComponent ClosestAxis () const
 Returns closest axis. More...
 
inline_ PointComponent SmallestAxis () const
 Returns smallest axis. More...
 
PointRefract (const Point &eye, const Point &n, float refractindex, Point &refracted)
 Refracts the point. More...
 
PointProjectToPlane (const Plane &p)
 Projects the point onto a plane. More...
 
void ProjectToScreen (float halfrenderwidth, float halfrenderheight, const Matrix4x4 &mat, HPoint &projected) const
 Projects the point onto the screen. More...
 
PointUnfold (Plane &p, Point &a, Point &b)
 Unfolds the point onto a plane according to edge(a,b) More...
 
inline_ udword GetHashValue () const
 Hash function from Ville Miettinen. More...
 
void SetNotUsed ()
 Stuff magic values in the point, marking it as explicitely not used. More...
 
bool IsNotUsed () const
 Checks the point is marked as not used. More...
 
inline_ Point operator- () const
 Unary operator for Point Negate = - Point. More...
 
inline_ Point operator+ (const Point &p) const
 Operator for Point Plus = Point + Point. More...
 
inline_ Point operator- (const Point &p) const
 Operator for Point Minus = Point - Point. More...
 
inline_ Point operator* (const Point &p) const
 Operator for Point Mul = Point * Point. More...
 
inline_ Point operator* (float s) const
 Operator for Point Scale = Point * float. More...
 
inline_ Point operator/ (const Point &p) const
 Operator for Point Div = Point / Point. More...
 
inline_ Point operator/ (float s) const
 Operator for Point Scale = Point / float. More...
 
inline_ float operator| (const Point &p) const
 Operator for float DotProd = Point | Point. More...
 
inline_ Point operator^ (const Point &p) const
 Operator for Point VecProd = Point ^ Point. More...
 
inline_ Pointoperator+= (const Point &p)
 Operator for Point += Point. More...
 
inline_ Pointoperator+= (float s)
 Operator for Point += float. More...
 
inline_ Pointoperator-= (const Point &p)
 Operator for Point -= Point. More...
 
inline_ Pointoperator-= (float s)
 Operator for Point -= float. More...
 
inline_ Pointoperator*= (const Point &p)
 Operator for Point *= Point. More...
 
inline_ Pointoperator*= (float s)
 Operator for Point *= float. More...
 
inline_ Pointoperator/= (const Point &p)
 Operator for Point /= Point. More...
 
inline_ Pointoperator/= (float s)
 Operator for Point /= float. More...
 
inline_ bool operator== (const Point &p) const
 Operator for "if(Point==Point)". More...
 
inline_ bool operator!= (const Point &p) const
 Operator for "if(Point!=Point)". More...
 
inline_ Point operator* (const Matrix3x3 &mat) const
 Operator for Point Mul = Point * Matrix3x3. More...
 
inline_ Point operator* (const Matrix4x4 &mat) const
 Operator for Point Mul = Point * Matrix4x4. More...
 
inline_ Pointoperator*= (const Matrix3x3 &mat)
 Operator for Point *= Matrix3x3. More...
 
inline_ Pointoperator*= (const Matrix4x4 &mat)
 Operator for Point *= Matrix4x4. More...
 
 operator HPoint () const
 Cast a Point to a HPoint. w is set to zero. More...
 
inline_ float operator[] (int n) const
 
inline_ floatoperator[] (int n)
 
bool operator== (const Point &other)
 
bool operator!= (const Point &other)
 
 Point ()
 
 Point (float cx, float cy)
 

Public Attributes

float w
 Cast a HPoint to a Point. w is discarded. More...
 
- Public Attributes inherited from Point
float x
 
float y
 
float z
 

Friends

inline_ friend HPoint operator* (float s, const HPoint &p)
 Operator for HPoint Scale = float * HPoint;. More...
 
inline_ friend HPoint operator/ (float s, const HPoint &p)
 Operator for HPoint Scale = float / HPoint;. More...
 

Detailed Description

Homogeneous point.

Use it:

  • for clipping in homogeneous space (standard way)
  • to differentiate between points (w=1) and vectors (w=0).
  • in some cases you can also use it instead of Point for padding reasons.
Author
Pierre Terdiman
Version
1.0
Warning
No cross-product in 4D.
HPoint *= Matrix3x3 doesn't exist, the matrix is first casted to a 4x4

Definition at line 15 of file IceHPoint.h.

Constructor & Destructor Documentation

inline_ HPoint::HPoint ( )
inline

Empty constructor.

Definition at line 20 of file IceHPoint.h.

20 {}
inline_ HPoint::HPoint ( float  _x,
float  _y,
float  _z,
float  _w = 0.0f 
)
inline

Constructor from floats.

Definition at line 22 of file IceHPoint.h.

22 : Point(_x, _y, _z), w(_w) {}
inline_ HPoint::HPoint ( const float  f[4])
inline

Constructor from array.

Definition at line 24 of file IceHPoint.h.

24 : Point(f), w(f[3]) {}
inline_ HPoint::HPoint ( const Point p,
float  _w = 0.0f 
)
inline

Constructor from a Point.

Definition at line 26 of file IceHPoint.h.

26 : Point(p), w(_w) {}
inline_ HPoint::~HPoint ( )
inline

Destructor.

Definition at line 28 of file IceHPoint.h.

28 {}

Member Function Documentation

inline_ HPoint& HPoint::Add ( float  _x,
float  _y,
float  _z,
float  _w 
)
inline

Add a vector.

Definition at line 41 of file IceHPoint.h.

References x, y, and z.

41 { x += _x; y += _y; z += _z; w += _w; return *this; }
inline_ HPoint& HPoint::Add ( const float  f[4])
inline

Add a vector.

Definition at line 43 of file IceHPoint.h.

References _W, _X, _Y, _Z, x, y, and z.

43 { x += f[_X]; y += f[_Y]; z += f[_Z]; w += f[_W]; return *this; }
inline_ float HPoint::Magnitude ( ) const
inline

Computes magnitude.

Definition at line 65 of file IceHPoint.h.

References x, y, and z.

65 { return sqrtf(x*x + y*y + z*z + w*w); }
float HPoint::Max ( ) const
inline

Returns MAX(x, y, z, w);.

Definition at line 56 of file IceHPoint.h.

References MAX, x, y, and z.

56 { return MAX(x, MAX(y, MAX(z, w))); }
HPoint& HPoint::Max ( const HPoint p)
inline

Sets each element to be componentwise maximum.

Definition at line 60 of file IceHPoint.h.

References MAX, w, x, Point::x, y, Point::y, z, and Point::z.

60 { x = MAX(x, p.x); y = MAX(y, p.y); z = MAX(z, p.z); w = MAX(w, p.w); return *this; }
float HPoint::Min ( ) const
inline

Returns MIN(x, y, z, w);.

Definition at line 54 of file IceHPoint.h.

References MIN, x, y, and z.

54 { return MIN(x, MIN(y, MIN(z, w))); }
HPoint& HPoint::Min ( const HPoint p)
inline

Sets each element to be componentwise minimum.

Definition at line 58 of file IceHPoint.h.

References MIN, w, x, Point::x, y, Point::y, z, and Point::z.

58 { x = MIN(x, p.x); y = MIN(y, p.y); z = MIN(z, p.z); w = MIN(w, p.w); return *this; }
inline_ HPoint& HPoint::Mul ( float  s)
inline

Multiplies by a scalar.

Definition at line 51 of file IceHPoint.h.

References x, y, and z.

51 { x *= s; y *= s; z *= s; w *= s; return *this; }
inline_ HPoint& HPoint::Normalize ( )
inline

Normalize the vector.

Definition at line 68 of file IceHPoint.h.

References M, Point::Magnitude(), x, y, and z.

69  {
70  float M = Magnitude();
71  if(M)
72  {
73  M = 1.0f / M;
74  x *= M;
75  y *= M;
76  z *= M;
77  w *= M;
78  }
79  return *this;
80  }
inline_ bool HPoint::operator!= ( const HPoint p) const
inline

Operator for "if(HPoint!=HPoint)".

Definition at line 145 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

145 { return ( (x!=p.x)||(y!=p.y)||(z!=p.z)||(w!=p.w)); }
inline_ HPoint HPoint::operator* ( const HPoint p) const
inline

Operator for HPoint Mul = HPoint * HPoint;.

Definition at line 92 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

92 { return HPoint(x * p.x, y * p.y, z * p.z, w * p.w); }
inline_ HPoint HPoint::operator* ( float  s) const
inline

Operator for HPoint Scale = HPoint * float;.

Definition at line 94 of file IceHPoint.h.

References x, y, and z.

94 { return HPoint(x * s, y * s, z * s, w * s); }
Point HPoint::operator* ( const Matrix3x3 mat) const

Operator for Point Mul = HPoint * Matrix3x3;.

HPoint HPoint::operator* ( const Matrix4x4 mat) const

Operator for HPoint Mul = HPoint * Matrix4x4;.

inline_ HPoint& HPoint::operator*= ( const HPoint p)
inline

Operator for HPoint *= HPoint;.

Definition at line 120 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

120 { x *= p.x; y *= p.y; z *= p.z; w *= p.w; return *this; }
inline_ HPoint& HPoint::operator*= ( float  s)
inline

Operator for HPoint *= float;.

Definition at line 122 of file IceHPoint.h.

References x, y, and z.

122 { x*=s; y*=s; z*=s; w*=s; return *this; }
HPoint& HPoint::operator*= ( const Matrix4x4 mat)

Operator for HPoint *= Matrix4x4.

inline_ HPoint HPoint::operator+ ( const HPoint p) const
inline

Operator for HPoint Plus = HPoint + HPoint;.

Definition at line 87 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

87 { return HPoint(x + p.x, y + p.y, z + p.z, w + p.w); }
inline_ HPoint& HPoint::operator+= ( const HPoint p)
inline

Operator for HPoint += HPoint;.

Definition at line 110 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

110 { x += p.x; y += p.y; z += p.z; w += p.w; return *this; }
inline_ HPoint& HPoint::operator+= ( float  s)
inline

Operator for HPoint += float;.

Definition at line 112 of file IceHPoint.h.

References x, y, and z.

112 { x += s; y += s; z += s; w += s; return *this; }
inline_ HPoint HPoint::operator- ( ) const
inline

Operator for HPoint Negate = - HPoint;.

Definition at line 84 of file IceHPoint.h.

References x, y, and z.

84 { return HPoint(-x, -y, -z, -w); }
inline_ HPoint HPoint::operator- ( const HPoint p) const
inline

Operator for HPoint Minus = HPoint - HPoint;.

Definition at line 89 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

89 { return HPoint(x - p.x, y - p.y, z - p.z, w - p.w); }
inline_ HPoint& HPoint::operator-= ( const HPoint p)
inline

Operator for HPoint -= HPoint;.

Definition at line 115 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

115 { x -= p.x; y -= p.y; z -= p.z; w -= p.w; return *this; }
inline_ HPoint& HPoint::operator-= ( float  s)
inline

Operator for HPoint -= float;.

Definition at line 117 of file IceHPoint.h.

References x, y, and z.

117 { x -= s; y -= s; z -= s; w -= s; return *this; }
inline_ HPoint HPoint::operator/ ( const HPoint p) const
inline

Operator for HPoint Div = HPoint / HPoint;.

Definition at line 99 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

99 { return HPoint(x / p.x, y / p.y, z / p.z, w / p.w); }
inline_ HPoint HPoint::operator/ ( float  s) const
inline

Operator for HPoint Scale = HPoint / float;.

Definition at line 101 of file IceHPoint.h.

References x, y, and z.

101 { s = 1.0f / s; return HPoint(x * s, y * s, z * s, w * s); }
inline_ HPoint& HPoint::operator/= ( const HPoint p)
inline

Operator for HPoint /= HPoint;.

Definition at line 125 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

125 { x /= p.x; y /= p.y; z /= p.z; w /= p.w; return *this; }
inline_ HPoint& HPoint::operator/= ( float  s)
inline

Operator for HPoint /= float;.

Definition at line 127 of file IceHPoint.h.

References x, y, and z.

127 { s = 1.0f / s; x*=s; y*=s; z*=s; w*=s; return *this; }
inline_ bool HPoint::operator== ( const HPoint p) const
inline

Operator for "if(HPoint==HPoint)".

Definition at line 143 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

143 { return ( (x==p.x)&&(y==p.y)&&(z==p.z)&&(w==p.w)); }
inline_ float HPoint::operator| ( const HPoint p) const
inline

Operator for float DotProd = HPoint | HPoint;.

Definition at line 106 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

106 { return x*p.x + y*p.y + z*p.z + w*p.w; }
inline_ HPoint& HPoint::Set ( float  _x,
float  _y,
float  _z,
float  _w 
)
inline

Assignment from values.

Definition at line 34 of file IceHPoint.h.

References x, y, and z.

34 { x = _x; y = _y; z = _z; w = _w; return *this; }
inline_ HPoint& HPoint::Set ( const float  f[4])
inline

Assignment from array.

Definition at line 36 of file IceHPoint.h.

References _W, _X, _Y, _Z, x, y, and z.

36 { x = f[_X]; y = f[_Y]; z = f[_Z]; w = f[_W]; return *this; }
inline_ HPoint& HPoint::Set ( const HPoint src)
inline

Assignment from another h-point.

Definition at line 38 of file IceHPoint.h.

References w, x, Point::x, y, Point::y, z, and Point::z.

38 { x = src.x; y = src.y; z = src.z; w = src.w; return *this; }
inline_ float HPoint::SquareMagnitude ( ) const
inline

Computes square magnitude.

Definition at line 63 of file IceHPoint.h.

References x, y, and z.

63 { return x*x + y*y + z*z + w*w; }
inline_ HPoint& HPoint::Sub ( float  _x,
float  _y,
float  _z,
float  _w 
)
inline

Subtract a vector.

Definition at line 46 of file IceHPoint.h.

References x, y, and z.

46 { x -= _x; y -= _y; z -= _z; w -= _w; return *this; }
inline_ HPoint& HPoint::Sub ( const float  f[4])
inline

Subtract a vector.

Definition at line 48 of file IceHPoint.h.

References _W, _X, _Y, _Z, x, y, and z.

48 { x -= f[_X]; y -= f[_Y]; z -= f[_Z]; w -= f[_W]; return *this; }
inline_ HPoint& HPoint::Zero ( )
inline

Clear the point.

Definition at line 31 of file IceHPoint.h.

References x, y, and z.

31 { x = y = z = w = 0.0f; return *this; }

Friends And Related Function Documentation

inline_ friend HPoint operator* ( float  s,
const HPoint p 
)
friend

Operator for HPoint Scale = float * HPoint;.

Definition at line 96 of file IceHPoint.h.

96 { return HPoint(s * p.x, s * p.y, s * p.z, s * p.w); }
inline_ friend HPoint operator/ ( float  s,
const HPoint p 
)
friend

Operator for HPoint Scale = float / HPoint;.

Definition at line 103 of file IceHPoint.h.

103 { return HPoint(s / p.x, s / p.y, s / p.z, s / p.w); }

Member Data Documentation


The documentation for this class was generated from the following file: