MathfPolar2Cartesian Method |
Converts a 2D point expressed in the polar coordinate
system (a distance from the origin `r` and an angle `th`)
to the cartesian coordinate system (X and Y axis).
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax public static Vector2 Polar2Cartesian(
float r,
float th
)
Parameters
- r
- Type: SystemSingle
The distance from the origin. - th
- Type: SystemSingle
The angle of the point.
Return Value
Type:
Vector2A
Vector2 representing the cartesian coordinate.
See Also