C# Class Microsoft.Phone.Controls.MathHelpers

Exibir arquivo Open project: Kinnara/WPToolkit

Public Methods

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

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.
return double

GetDistance() public static method

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

ToPoint() public static method

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