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
|
public static GetAngle ( double deltaX, double deltaY ) : double | ||
deltaX | double | Change in X. |
deltaY | double | Change in Y. |
return | double |
public static GetDistance ( Point p0, Point p1 ) : double | ||
p0 | Point | The first point. |
p1 | Point | The second point. |
return | double |
public static ToPoint ( this v ) : Point | ||
v | this | The Vector2. |
return | Point |