xy_to_rt#

ansys.motorcad.core.geometry.xy_to_rt(x, y)#

Convert Motor-CAD Cartesian coordinates to polar coordinates in degrees.

Parameters:
xfloat

X coordinate value.

yfloat

Y coordinate value.

Returns:
radiusfloat

Radial coordinate value.

thetafloat

Angular coordinate value.