Function macroquad::math::cartesian_to_polar

source ยท
pub fn cartesian_to_polar(cartesian: Vec2) -> Vec2
Expand description

Converts 2d cartesian coordinates to 2d polar coordinates.