aspsim.room.generatepoints.cart2spherical
- aspsim.room.generatepoints.cart2spherical(cart_coord)
Transforms the provided cartesian coordinates to spherical coordinates
- Parameters:
cart_coord (ndarray of shape (num_points, 3))
- Returns:
r (ndarray of shape (num_points, 1)) – radius of each point
angle (ndarray of shape (num_points, 2)) – angle[:,0] is theta, the angle in the xy plane, where 0 is x direction, pi/2 is y direction angle[:,1] is phi, the zenith angle, where 0 is z direction, pi is negative z direction