C# Class monoshrub.Vectors

Mostrar archivo Open project: threerings/monoshrub Class Usage Examples

Public Properties

Property Type Description
MAX_VALUE Vector
MIN_VALUE Vector
UNIT_X Vector
UNIT_Y Vector
ZERO Vector

Public Methods

Method Description
EpsilonEquals ( Vector v1, Vector v2 ) : bool
EpsilonEquals ( Vector v1, Vector v2, float epsilon ) : bool
FromPolar ( float magnitude, float angle ) : Vector
InverseTransform ( float x, float y, float sx, float sy, float rotation ) : Vector
IsEpsilonZero ( float x, float y ) : bool
IsEpsilonZero ( float x, float y, float epsilon ) : bool
IsZero ( float x, float y ) : bool
Length ( float x, float y ) : float
LengthSq ( float x, float y ) : float
Transform ( float x, float y, float sx, float sy, float rotation ) : Vector
Transform ( float x, float y, float sx, float sy, float sina, float cosa ) : Vector
VectorToString ( float x, float y ) : String

Method Details

EpsilonEquals() public static method

public static EpsilonEquals ( Vector v1, Vector v2 ) : bool
v1 Vector
v2 Vector
return bool

EpsilonEquals() public static method

public static EpsilonEquals ( Vector v1, Vector v2, float epsilon ) : bool
v1 Vector
v2 Vector
epsilon float
return bool

FromPolar() public static method

public static FromPolar ( float magnitude, float angle ) : Vector
magnitude float
angle float
return Vector

InverseTransform() public static method

public static InverseTransform ( float x, float y, float sx, float sy, float rotation ) : Vector
x float
y float
sx float
sy float
rotation float
return Vector

IsEpsilonZero() public static method

public static IsEpsilonZero ( float x, float y ) : bool
x float
y float
return bool

IsEpsilonZero() public static method

public static IsEpsilonZero ( float x, float y, float epsilon ) : bool
x float
y float
epsilon float
return bool

IsZero() public static method

public static IsZero ( float x, float y ) : bool
x float
y float
return bool

Length() public static method

public static Length ( float x, float y ) : float
x float
y float
return float

LengthSq() public static method

public static LengthSq ( float x, float y ) : float
x float
y float
return float

Transform() public static method

public static Transform ( float x, float y, float sx, float sy, float rotation ) : Vector
x float
y float
sx float
sy float
rotation float
return Vector

Transform() public static method

public static Transform ( float x, float y, float sx, float sy, float sina, float cosa ) : Vector
x float
y float
sx float
sy float
sina float
cosa float
return Vector

VectorToString() public static method

public static VectorToString ( float x, float y ) : String
x float
y float
return String

Property Details

MAX_VALUE public_oe static_oe property

public static Vector,monoshrub MAX_VALUE
return Vector

MIN_VALUE public_oe static_oe property

public static Vector,monoshrub MIN_VALUE
return Vector

UNIT_X public_oe static_oe property

public static Vector,monoshrub UNIT_X
return Vector

UNIT_Y public_oe static_oe property

public static Vector,monoshrub UNIT_Y
return Vector

ZERO public_oe static_oe property

public static Vector,monoshrub ZERO
return Vector