構造体 UShortN

a scalar normalized unsigned short [詳細]

すべてのメンバ一覧

Public メソッド

 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 メソッド

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 変数

ushort Bits
 the short data

説明

a scalar normalized unsigned short


コンストラクタとデストラクタ

UShortN ( float  f)

constructor taking a float to convert to normalized unsigned short

引数:
fthe float to convert

メソッド

bool Equals ( UShortN  v)

equality test

引数:
vthe value to compare this to
戻り値:
true if this == v, false otherwise
override bool Equals ( Object  o)

equality test

引数:
othe object to compare this to
戻り値:
true if this == o, false otherwise
override int GetHashCode ( )

gets the hash code for this

戻り値:
integer hash code
static implicit operator float ( UShortN  v) [static]

float casting operator

引数:
vthe value to convert to float
戻り値:
the float value
static operator UShortN ( float  f) [explicit, static]

normalized unsigned short casting operator

引数:
fthe float to convert to normalized unsigned short
戻り値:
the normalized unsigned short value
static bool operator!= ( UShortN  v1,
UShortN  v2 
) [static]

not equals operator

引数:
v1value 1
v2value 2
戻り値:
true if value 1 != value 2, false otherwise
static bool operator== ( UShortN  v1,
UShortN  v2 
) [static]

equality operator

引数:
v1value 1
v2value 2
戻り値:
true if value 1 == value 2, false otherwise
float ToFloat ( )

return the float value of this

戻り値:
the float value of this
override string ToString ( )

get the string representation of float value

戻り値:
the string representation of float value

変数

ushort Bits

the short data