C# Class monoshrub.Vectors

Afficher le fichier Open project: threerings/monoshrub Class Usage Examples

Méthodes publiques

Свойство Type Description
MAX_VALUE Vector
MIN_VALUE Vector
UNIT_X Vector
UNIT_Y Vector
ZERO Vector

Méthodes publiques

Méthode 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 méthode

public static EpsilonEquals ( Vector v1, Vector v2 ) : bool
v1 Vector
v2 Vector
Résultat bool

EpsilonEquals() public static méthode

public static EpsilonEquals ( Vector v1, Vector v2, float epsilon ) : bool
v1 Vector
v2 Vector
epsilon float
Résultat bool

FromPolar() public static méthode

public static FromPolar ( float magnitude, float angle ) : Vector
magnitude float
angle float
Résultat Vector

InverseTransform() public static méthode

public static InverseTransform ( float x, float y, float sx, float sy, float rotation ) : Vector
x float
y float
sx float
sy float
rotation float
Résultat Vector

IsEpsilonZero() public static méthode

public static IsEpsilonZero ( float x, float y ) : bool
x float
y float
Résultat bool

IsEpsilonZero() public static méthode

public static IsEpsilonZero ( float x, float y, float epsilon ) : bool
x float
y float
epsilon float
Résultat bool

IsZero() public static méthode

public static IsZero ( float x, float y ) : bool
x float
y float
Résultat bool

Length() public static méthode

public static Length ( float x, float y ) : float
x float
y float
Résultat float

LengthSq() public static méthode

public static LengthSq ( float x, float y ) : float
x float
y float
Résultat float

Transform() public static méthode

public static Transform ( float x, float y, float sx, float sy, float rotation ) : Vector
x float
y float
sx float
sy float
rotation float
Résultat Vector

Transform() public static méthode

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
Résultat Vector

VectorToString() public static méthode

public static VectorToString ( float x, float y ) : String
x float
y float
Résultat String

Property Details

MAX_VALUE public_oe static_oe property

public static Vector,monoshrub MAX_VALUE
Résultat Vector

MIN_VALUE public_oe static_oe property

public static Vector,monoshrub MIN_VALUE
Résultat Vector

UNIT_X public_oe static_oe property

public static Vector,monoshrub UNIT_X
Résultat Vector

UNIT_Y public_oe static_oe property

public static Vector,monoshrub UNIT_Y
Résultat Vector

ZERO public_oe static_oe property

public static Vector,monoshrub ZERO
Résultat Vector