C# 클래스 Microsoft.Phone.Controls.MathHelpers

파일 보기 프로젝트 열기: Kinnara/WPToolkit

공개 메소드들

메소드 설명
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

메소드 상세

GetAngle() 공개 정적인 메소드

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.
리턴 double

GetDistance() 공개 정적인 메소드

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

ToPoint() 공개 정적인 메소드

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