C# Class Microsoft.Phone.Controls.MathHelpers

Afficher le fichier Open project: Kinnara/WPToolkit

Méthodes publiques

Méthode Description
GetAngle ( double deltaX, double deltaY ) : double

Return the angle of the hypotenuse of a triangle with sides defined by deltaX and deltaY.

GetDistance ( Point p0, Point p1 ) : double

Return the distance between two points

ToPoint ( this v ) : Point

Helper extension method for turning XNA's Vector2 type into a Point

Method Details

GetAngle() public static méthode

Return the angle of the hypotenuse of a triangle with sides defined by deltaX and deltaY.
public static GetAngle ( double deltaX, double deltaY ) : double
deltaX double Change in X.
deltaY double Change in Y.
Résultat double

GetDistance() public static méthode

Return the distance between two points
public static GetDistance ( Point p0, Point p1 ) : double
p0 Point The first point.
p1 Point The second point.
Résultat double

ToPoint() public static méthode

Helper extension method for turning XNA's Vector2 type into a Point
public static ToPoint ( this v ) : Point
v this The Vector2.
Résultat Point