Main Page | Class Hierarchy | Class List | Class Members

SC::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)
bool operator== (Vector4 left, Vector4 right)
Vector4 operator- (Vector4 left)
bool operator!= (Vector4 left, Vector4 right)

Properties

float this [int index]

Detailed Description

4D homogeneous vector.


Constructor & Destructor Documentation

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

Creates a new 4 dimensional Vector.


Member Function Documentation

float SC::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 SC::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 SC::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 SC::Math::Vector4::Multiply Vector4  vector,
Matrix4  matrix
[inline, static]
 

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

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

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

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

Used to negate the elements of a vector.

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

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

override string SC::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 SC::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 Sat Jan 15 23:59:00 2005 for StreamCtrl by doxygen 1.3.6