構造体 Short2N

vector of 2 normalized signed shorts [詳細]

すべてのメンバ一覧

Public メソッド

 Short2N (float x, float y)
 constructor taking 2 scalar floats
 Short2N (Vector2 v)
 constructor taking a Vector2
Vector2 ToVector2 ()
 return the vector as a Vector2
bool Equals (Short2N 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 メソッド

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

Public 変数

ShortN X
 X.
ShortN Y
 Y.

説明

vector of 2 normalized signed shorts


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

Short2N ( float  x,
float  y 
)

constructor taking 2 scalar floats

引数:
xx value to init with
yy value to init with
Short2N ( Vector2  v)

constructor taking a Vector2

引数:
vthe vector to init with

メソッド

bool Equals ( Short2N  v)

equality test

引数:
vthe vector 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 bool operator!= ( Short2N  v1,
Short2N  v2 
) [static]

not equals operator

引数:
v1vector 1
v2vector 2
戻り値:
true if v 1 != v 2, false otherwise
static bool operator== ( Short2N  v1,
Short2N  v2 
) [static]

equality operator

引数:
v1vector 1
v2vector 2
戻り値:
true if vector 1 == vector 2, false otherwise
override string ToString ( )

get the string representation of vector value

戻り値:
the string representation of vector value
Vector2 ToVector2 ( )

return the vector as a Vector2

戻り値:
the vector as a Vector2

変数

X.

Y.