Half4 Struct Reference

vector of 4 halfs More...

List of all members.

Public Member Functions

 Half4 (float x, float y, float z, float w)
 constructor taking 4 scalar floats
 Half4 (Vector4 v)
 constructor taking a Vector4
Vector4 ToVector4 ()
 return the vector as a Vector4
bool Equals (Half4 v)
 equality test
override bool Equals (Object o)
 equality test
override string ToString ()
 get the string representation of vector value
override int GetHashCode ()
 gets the hash code for this

Static Public Member Functions

static bool operator== (Half4 v1, Half4 v2)
 equality operator
static bool operator!= (Half4 v1, Half4 v2)
 not equals operator

Public Attributes

Half X
 X.
Half Y
 Y.
Half Z
 Z.
Half W
 W.

Detailed Description

vector of 4 halfs


Constructor & Destructor Documentation

Half4 ( float  x,
float  y,
float  z,
float  w 
)

constructor taking 4 scalar floats

Parameters:
xx value to init with
yy value to init with
zz value to init with
ww value to init with
Half4 ( Vector4  v)

constructor taking a Vector4

Parameters:
vthe vector to init with

Member Function Documentation

bool Equals ( Half4  v)

equality test

Parameters:
vthe vector to compare this to
Returns:
true if this == v, false otherwise
override bool Equals ( Object  o)

equality test

Parameters:
othe object to compare this to
Returns:
true if this == o, false otherwise
override int GetHashCode ( )

gets the hash code for this

Returns:
integer hash code
static bool operator!= ( Half4  v1,
Half4  v2 
) [static]

not equals operator

Parameters:
v1vector 1
v2vector 2
Returns:
true if v 1 != v 2, false otherwise
static bool operator== ( Half4  v1,
Half4  v2 
) [static]

equality operator

Parameters:
v1vector 1
v2vector 2
Returns:
true if vector 1 == vector 2, false otherwise
override string ToString ( )

get the string representation of vector value

Returns:
the string representation of vector value
Vector4 ToVector4 ( )

return the vector as a Vector4

Returns:
the vector as a Vector4

Member Data Documentation

W.

X.

Y.

Z.