Vector4 Class Reference

This reference page is linked to from the following overview topics: Math and Geometry Utilities.



Detailed Description

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

Definition at line 604 of file math.h.

#include <math.h>

List of all members.

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 607 of file math.h.

{ x=y=z=w=0.0f; }
Vector4 ( float  X,
float  Y,
float  Z,
float  W 
) [inline]

Definition at line 609 of file math.h.

{x=X; y=Y; z=Z; w=W;}

Member Function Documentation

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

Definition at line 611 of file math.h.

    { return x == v.x && y == v.y && z == v.z; };
bool operator!= ( const Vector4 v ) const throw () [inline]

Definition at line 614 of file math.h.

    { return !operator ==( v ); };

Member Data Documentation

float x

Definition at line 619 of file math.h.

float y

Definition at line 619 of file math.h.

float z

Definition at line 619 of file math.h.

float w

Definition at line 619 of file math.h.

double m_dAlignDummy

Definition at line 621 of file math.h.

__m128 m_VecSSE

Definition at line 623 of file math.h.


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

Vector4 Vector4 Vector4 Vector4 Vector4 Vector4 Vector4 Vector4 Vector4 Vector4
Vector4 Vector4 Vector4 Vector4 Vector4 Vector4 Vector4 Vector4 Vector4 Vector4