Method | Description | |
---|---|---|
CircleToRectangle ( |
Converts the parameters for a circle to a rectangle containing the circle.
|
|
CircularTranslate ( this start, int distance, float angle ) : |
Translates a point according the circular definition of a distance.
|
|
GetAngle ( this speed ) : float |
Returns the angle in radians of a speed with two directional components.
|
|
GetLength ( this speed ) : float |
Returns the length of a speed with two directional components.
|
|
RadToDeg ( float rad ) : float |
Converts radians to degrees.
|
|
ToOrigin ( this rect ) : |
Returns a new rectangle that is translated to the origin.
|
public static CircleToRectangle ( |
||
center | The center of the circle. | |
radius | int | The radius of the circle. |
return |
public static CircularTranslate ( this start, int distance, float angle ) : |
||
start | this | The point to translate. |
distance | int | The distance to translate the point. |
angle | float | The angle to translate the point at. |
return |
public static GetAngle ( this speed ) : float | ||
speed | this | The speed. |
return | float |
public static GetLength ( this speed ) : float | ||
speed | this | The speed. |
return | float |
public static RadToDeg ( float rad ) : float | ||
rad | float | The angle in radians. |
return | float |
public static ToOrigin ( this rect ) : |
||
rect | this | The rectangle to translate. |
return |