C# Class Squared.Game.GameExtensionMethods

Afficher le fichier Open project: sq/Fracture

Méthodes publiques

Méthode Description
Bounds ( this @this ) : Bounds
BoundsFromRectangle ( this @this, Rectangle &rectangle ) : Bounds
Dot ( this @this, Vector2 &rhs ) : float
Floor ( this vector ) : Vector2
NextDouble ( this random, double min, double max ) : double
NextFloat ( this random, float min, float max ) : float
Perpendicular ( this vector ) : Vector2
PerpendicularLeft ( this vector ) : Vector2
Rotate ( this vector, float radians ) : Vector2
Round ( this vector ) : Vector2
Round ( this vector, int decimals ) : Vector2
Round ( this vector ) : Vector3
Round ( this vector, int decimals ) : Vector3

Method Details

Bounds() public static méthode

public static Bounds ( this @this ) : Bounds
@this this
Résultat Bounds

BoundsFromRectangle() public static méthode

public static BoundsFromRectangle ( this @this, Rectangle &rectangle ) : Bounds
@this this
rectangle Microsoft.Xna.Framework.Rectangle
Résultat Bounds

Dot() public static méthode

public static Dot ( this @this, Vector2 &rhs ) : float
@this this
rhs Vector2
Résultat float

Floor() public static méthode

public static Floor ( this vector ) : Vector2
vector this
Résultat Vector2

NextDouble() public static méthode

public static NextDouble ( this random, double min, double max ) : double
random this
min double
max double
Résultat double

NextFloat() public static méthode

public static NextFloat ( this random, float min, float max ) : float
random this
min float
max float
Résultat float

Perpendicular() public static méthode

public static Perpendicular ( this vector ) : Vector2
vector this
Résultat Vector2

PerpendicularLeft() public static méthode

public static PerpendicularLeft ( this vector ) : Vector2
vector this
Résultat Vector2

Rotate() public static méthode

public static Rotate ( this vector, float radians ) : Vector2
vector this
radians float
Résultat Vector2

Round() public static méthode

public static Round ( this vector ) : Vector2
vector this
Résultat Vector2

Round() public static méthode

public static Round ( this vector, int decimals ) : Vector2
vector this
decimals int
Résultat Vector2

Round() public static méthode

public static Round ( this vector ) : Vector3
vector this
Résultat Vector3

Round() public static méthode

public static Round ( this vector, int decimals ) : Vector3
vector this
decimals int
Résultat Vector3