aspcol.utilities.pol2cart
- aspcol.utilities.pol2cart(r, angle)
Tranforms the provided polar coordinates to cartesian coordinates
- Parameters:
r (float or ndarray of shape (num_points,)) – radius
angle (float or ndarray of shape (num_points,)) – angle in radians. 0 is the x-direction, pi/2 is the y-direction
- Returns:
x (float or ndarray of shape (num_points,)) – x coordinate
y (float or ndarray of shape (num_points,)) – y coordinate