C# Class FSO.Client.Utils.MathUtils

Afficher le fichier Open project: RHY3756547/FreeSO

Méthodes publiques

Méthode Description
DegreeToRadian ( double angle ) : double
GetCenter ( Rectangle bounds ) : Vector2
RadianToDegree ( double angle ) : double
RotateVector2 ( Vector2 point, float radians, Vector2 pivot ) : Vector2

Method Details

DegreeToRadian() public static méthode

public static DegreeToRadian ( double angle ) : double
angle double
Résultat double

GetCenter() public static méthode

public static GetCenter ( Rectangle bounds ) : Vector2
bounds Microsoft.Xna.Framework.Rectangle
Résultat Vector2

RadianToDegree() public static méthode

public static RadianToDegree ( double angle ) : double
angle double
Résultat double

RotateVector2() public static méthode

public static RotateVector2 ( Vector2 point, float radians, Vector2 pivot ) : Vector2
point Vector2
radians float
pivot Vector2
Résultat Vector2