Method VectorToAngle
VectorToAngle(Vector2)
Converts the specified direction/heading vector to an angle.
public static float VectorToAngle(Vector2 direction)
Parameters
directionVector2The direction/heading vector to convert.
Returns
- float
The angle, in degrees matching the direction of this vector.
VectorToAngle(Vector3)
Converts the specified direction/heading vector to an angle.
public static float VectorToAngle(Vector3 direction)
Parameters
directionVector3The direction/heading vector to convert.
Returns
- float
The angle, in degrees matching the direction of this vector.