C# Class Squared.Game.GameExtensionMethods

Mostrar archivo Open project: sq/Fracture

Public Methods

Method 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 method

public static Bounds ( this @this ) : Bounds
@this this
return Bounds

BoundsFromRectangle() public static method

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

Dot() public static method

public static Dot ( this @this, Vector2 &rhs ) : float
@this this
rhs Vector2
return float

Floor() public static method

public static Floor ( this vector ) : Vector2
vector this
return Vector2

NextDouble() public static method

public static NextDouble ( this random, double min, double max ) : double
random this
min double
max double
return double

NextFloat() public static method

public static NextFloat ( this random, float min, float max ) : float
random this
min float
max float
return float

Perpendicular() public static method

public static Perpendicular ( this vector ) : Vector2
vector this
return Vector2

PerpendicularLeft() public static method

public static PerpendicularLeft ( this vector ) : Vector2
vector this
return Vector2

Rotate() public static method

public static Rotate ( this vector, float radians ) : Vector2
vector this
radians float
return Vector2

Round() public static method

public static Round ( this vector ) : Vector2
vector this
return Vector2

Round() public static method

public static Round ( this vector, int decimals ) : Vector2
vector this
decimals int
return Vector2

Round() public static method

public static Round ( this vector ) : Vector3
vector this
return Vector3

Round() public static method

public static Round ( this vector, int decimals ) : Vector3
vector this
decimals int
return Vector3