Short3N Struct Reference

vector of 3 normalized signed shorts More...

List of all members.

Public Member Functions

 Short3N (float x, float y, float z)
 constructor taking 3 scalar floats
 Short3N (Vector3 v)
 constructor taking a Vector3
Vector3 ToVector3 ()
 return the vector as a Vector3
bool Equals (Short3N 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== (Short3N v1, Short3N v2)
 equality operator
static bool operator!= (Short3N v1, Short3N v2)
 not equals operator

Public Attributes

ShortN X
 X.
ShortN Y
 Y.
ShortN Z
 Z.

Detailed Description

vector of 3 normalized signed shorts


Constructor & Destructor Documentation

Short3N ( float  x,
float  y,
float  z 
)

constructor taking 3 scalar floats

Parameters:
xx value to init with
yy value to init with
zz value to init with
Short3N ( Vector3  v)

constructor taking a Vector3

Parameters:
vthe vector to init with

Member Function Documentation

bool Equals ( Short3N  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!= ( Short3N  v1,
Short3N  v2 
) [static]

not equals operator

Parameters:
v1vector 1
v2vector 2
Returns:
true if v 1 != v 2, false otherwise
static bool operator== ( Short3N  v1,
Short3N  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
Vector3 ToVector3 ( )

return the vector as a Vector3

Returns:
the vector as a Vector3

Member Data Documentation

X.

Y.

Z.