Method | Description | |
---|---|---|
AngleToVector2 ( float angle ) : Vector2 |
Converts the specified angle into a vector of magnitude 1.
|
|
Vector2ToAngle ( float x, float y ) : float |
Takes as a paramter a vector and returns the angle in radians corresponding to the vector.
|
public static AngleToVector2 ( float angle ) : Vector2 | ||
angle | float | The angle. |
return | Vector2 |
public static Vector2ToAngle ( float x, float y ) : float | ||
x | float | The x coordinate. |
y | float | The y cooordinate. |
return | float |