UShortN Struct Reference

a scalar normalized unsigned short More...

List of all members.

Public Member Functions

 UShortN (float f)
 constructor taking a float to convert to normalized unsigned short
float ToFloat ()
 return the float value of this
bool Equals (UShortN v)
 equality test
override bool Equals (Object o)
 equality test
override string ToString ()
 get the string representation of float value
override int GetHashCode ()
 gets the hash code for this

Static Public Member Functions

static bool operator== (UShortN v1, UShortN v2)
 equality operator
static bool operator!= (UShortN v1, UShortN v2)
 not equals operator
static implicit operator float (UShortN v)
 float casting operator
static operator UShortN (float f)
 normalized unsigned short casting operator

Public Attributes

ushort Bits
 the short data

Detailed Description

a scalar normalized unsigned short


Constructor & Destructor Documentation

UShortN ( float  f)

constructor taking a float to convert to normalized unsigned short

Parameters:
fthe float to convert

Member Function Documentation

bool Equals ( UShortN  v)

equality test

Parameters:
vthe value 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 implicit operator float ( UShortN  v) [static]

float casting operator

Parameters:
vthe value to convert to float
Returns:
the float value
static operator UShortN ( float  f) [explicit, static]

normalized unsigned short casting operator

Parameters:
fthe float to convert to normalized unsigned short
Returns:
the normalized unsigned short value
static bool operator!= ( UShortN  v1,
UShortN  v2 
) [static]

not equals operator

Parameters:
v1value 1
v2value 2
Returns:
true if value 1 != value 2, false otherwise
static bool operator== ( UShortN  v1,
UShortN  v2 
) [static]

equality operator

Parameters:
v1value 1
v2value 2
Returns:
true if value 1 == value 2, false otherwise
float ToFloat ( )

return the float value of this

Returns:
the float value of this
override string ToString ( )

get the string representation of float value

Returns:
the string representation of float value

Member Data Documentation

ushort Bits

the short data