toCartesian

fun toCartesian(radius: Double, azimuth: Double): Vec2(source)

Converts polar coordinates to Cartesian coordinates.

Return

A Vec2 instance representing the Cartesian coordinates.

Parameters

radius

The distance from the origin to the point.

azimuth

The azimuth angle, in radians.