aspsim.room.generatepoints.cart2pol
- aspsim.room.generatepoints.cart2pol(x, y)
Transforms the provided cartesian coordinates to polar coordinates
- Parameters:
x (ndarray of shape (num_points,)) – x-coordinate of each point
y (ndarray of shape (num_points,)) – y-coordinate of each point
- Returns:
r (ndarray of shape (num_points,)) – radius of each point
angle (ndarray of shape (num_points,)) – the angles in radians