C# Class FSO.Client.Utils.MathUtils

Mostrar archivo Open project: RHY3756547/FreeSO

Public Methods

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

public static DegreeToRadian ( double angle ) : double
angle double
return double

GetCenter() public static method

public static GetCenter ( Rectangle bounds ) : Vector2
bounds Microsoft.Xna.Framework.Rectangle
return Vector2

RadianToDegree() public static method

public static RadianToDegree ( double angle ) : double
angle double
return double

RotateVector2() public static method

public static RotateVector2 ( Vector2 point, float radians, Vector2 pivot ) : Vector2
point Vector2
radians float
pivot Vector2
return Vector2