C# Class NFrame.NFVector2

Mostra file Open project: ketoo/NoahGameFrame Class Usage Examples

Public Methods

Method Description
Direction ( ) : NFVector2
Distance ( NFVector2 va, NFVector2 vb ) : float
FromString ( string value ) : bool
IsZero ( ) : bool
Length ( ) : float
NFVector2 ( ) : System
NFVector2 ( float x, float y ) : System
SetX ( float x ) : void
SetY ( float y ) : void
SquaredLength ( ) : float
ToStr ( ) : string
X ( ) : float
Y ( ) : float
add ( NFVector2 va, NFVector2 vb ) : NFVector2
sub ( NFVector2 va, NFVector2 vb ) : NFVector2

Method Details

Direction() public method

public Direction ( ) : NFVector2
return NFVector2

Distance() public static method

public static Distance ( NFVector2 va, NFVector2 vb ) : float
va NFVector2
vb NFVector2
return float

FromString() public method

public FromString ( string value ) : bool
value string
return bool

IsZero() public method

public IsZero ( ) : bool
return bool

Length() public method

public Length ( ) : float
return float

NFVector2() public method

public NFVector2 ( ) : System
return System

NFVector2() public method

public NFVector2 ( float x, float y ) : System
x float
y float
return System

SetX() public method

public SetX ( float x ) : void
x float
return void

SetY() public method

public SetY ( float y ) : void
y float
return void

SquaredLength() public method

public SquaredLength ( ) : float
return float

ToStr() public method

public ToStr ( ) : string
return string

X() public method

public X ( ) : float
return float

Y() public method

public Y ( ) : float
return float

add() public static method

public static add ( NFVector2 va, NFVector2 vb ) : NFVector2
va NFVector2
vb NFVector2
return NFVector2

sub() public static method

public static sub ( NFVector2 va, NFVector2 vb ) : NFVector2
va NFVector2
vb NFVector2
return NFVector2