Main Page | Class Hierarchy | Class List | Class Members

DVR::Math::Vector4 Struct Reference

List of all members.

Public Member Functions

 Vector4 (float x, float y, float z, float w)
float Dot (Vector4 vec)
override string ToString ()
override int GetHashCode ()
override bool Equals (object obj)

Static Public Member Functions

Vector4 Multiply (Vector4 vector, Matrix4 matrix)
Vector4 operator * (Matrix4 matrix, Vector4 vector)
Vector4 operator * (Vector4 vector, Matrix4 matrix)
bool operator== (Vector4 left, Vector4 right)
Vector4 operator- (Vector4 left)
bool operator!= (Vector4 left, Vector4 right)

Public Attributes

float x
float y
float z
float w

Properties

float this [int index]

Detailed Description

4D homogeneous vector.


Constructor & Destructor Documentation

DVR::Math::Vector4::Vector4 float  x,
float  y,
float  z,
float  w
[inline]
 

Creates a new 4 dimensional Vector.


Member Function Documentation

float DVR::Math::Vector4::Dot Vector4  vec  )  [inline]
 

Calculates the dot (scalar) product of this vector with another. Vector with which to calculate the dot product (together with this one). A float representing the dot product value.

override bool DVR::Math::Vector4::Equals object  obj  )  [inline]
 

Compares this Vector to another object. This should be done because the equality operators (==, !=) have been overriden by this class.

override int DVR::Math::Vector4::GetHashCode  )  [inline]
 

Provides a unique hash code based on the member variables of this class. This should be done because the equality operators (==, !=) have been overriden by this class. <p/> The standard implementation is a simple XOR operation between all local member variables.

Vector4 DVR::Math::Vector4::Multiply Vector4  vector,
Matrix4  matrix
[inline, static]
 

Vector4 DVR::Math::Vector4::operator * Matrix4  matrix,
Vector4  vector
[inline, static]
 

bool DVR::Math::Vector4::operator!= Vector4  left,
Vector4  right
[inline, static]
 

User to compare two Vector4 instances for inequality. true or false

Vector4 DVR::Math::Vector4::operator- Vector4  left  )  [inline, static]
 

Used to negate the elements of a vector.

bool DVR::Math::Vector4::operator== Vector4  left,
Vector4  right
[inline, static]
 

User to compare two Vector4 instances for equality. true or false

override string DVR::Math::Vector4::ToString  )  [inline]
 

Overrides the Object.ToString() method to provide a text representation of a Vector4. A string representation of a Vector4.


Property Documentation

float DVR::Math::Vector4::this[int index] [get, set]
 

Used to access a Vector by index 0 = this.x, 1 = this.y, 2 = this.z, 3 = this.w. Uses unsafe pointer arithmetic to reduce the code required.


The documentation for this struct was generated from the following file:
Generated on Tue Nov 30 22:19:44 2004 for DirectVolumeRenderer by doxygen 1.3.6