Vector4 Class Reference

#include <math.h>

Class Description

A four dimensionsional vector (X, Y, Z, and W)

Definition at line 617 of file math.h.

Public Member Functions

 Vector4 ()
 
 Vector4 (float X, float Y, float Z, float W)
 
bool operator== (const Vector4 &v) const throw ()
 
bool operator!= (const Vector4 &v) const throw ()
 

Public Attributes

union {
   struct {
      float   x
 
      float   y
 
      float   z
 
      float   w
 
   } 
 
   double   m_dAlignDummy
 
   __m128   m_VecSSE
 
}; 
 

Constructor & Destructor Documentation

Vector4 ( )
inline

Definition at line 620 of file math.h.

620 { x=y=z=w=0.0f; }
GLenum GLint GLint y
Definition: GLee.h:876
GLdouble GLdouble z
Definition: GLee.h:1393
GLenum GLint x
Definition: GLee.h:876
GLubyte GLubyte GLubyte GLubyte w
Definition: GLee.h:1775
Vector4 ( float  X,
float  Y,
float  Z,
float  W 
)
inline

Definition at line 622 of file math.h.

622 {x=X; y=Y; z=Z; w=W;}
GLenum GLint GLint y
Definition: GLee.h:876
GLdouble GLdouble z
Definition: GLee.h:1393
GLenum GLint x
Definition: GLee.h:876
GLubyte GLubyte GLubyte GLubyte w
Definition: GLee.h:1775

Member Function Documentation

bool operator== ( const Vector4 v) const
throw (
)
inline

Definition at line 624 of file math.h.

625  { return x == v.x && y == v.y && z == v.z; };
GLenum GLint GLint y
Definition: GLee.h:876
GLdouble GLdouble z
Definition: GLee.h:1393
GLenum GLint x
Definition: GLee.h:876
const GLdouble * v
Definition: GLee.h:1174
bool operator!= ( const Vector4 v) const
throw (
)
inline

Definition at line 627 of file math.h.

628  { return !operator ==( v ); };
const GLdouble * v
Definition: GLee.h:1174
bool operator==(const Vector4 &v) const
Definition: math.h:624

Member Data Documentation

float x

Definition at line 632 of file math.h.

float y

Definition at line 632 of file math.h.

float z

Definition at line 632 of file math.h.

float w

Definition at line 632 of file math.h.

double m_dAlignDummy

Definition at line 634 of file math.h.

__m128 m_VecSSE

Definition at line 636 of file math.h.

union { ... }

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