構造体 Half

a scalar half [詳細]

すべてのメンバ一覧

Public メソッド

 Half (float f)
 constructor taking a float to convert to half
float ToFloat ()
 return the float value of this
bool Equals (Half h)
 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== (Half h1, Half h2)
 equality operator
static bool operator!= (Half h1, Half h2)
 not equals operator
static implicit operator float (Half h)
 float casting operator
static operator Half (float f)
 half casting operator

Public 変数

ushort Bits
 the half data

説明

a scalar half


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

Half ( float  f)

constructor taking a float to convert to half

引数:
fthe float to convert

メソッド

bool Equals ( Half  h)

equality test

引数:
hthe half to compare this to
戻り値:
true if this == h, 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 ( Half  h) [static]

float casting operator

引数:
hthe half to convert to float
戻り値:
the float value of the half
static operator Half ( float  f) [explicit, static]

half casting operator

引数:
fthe float to convert to half
戻り値:
the half value of the float
static bool operator!= ( Half  h1,
Half  h2 
) [static]

not equals operator

引数:
h1half 1
h2half 2
戻り値:
true if half 1 != half 2, false otherwise
static bool operator== ( Half  h1,
Half  h2 
) [static]

equality operator

引数:
h1half 1
h2half 2
戻り値:
true if half 1 == half 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 half data