aspsim.room.generatepoints.pol2cart

aspsim.room.generatepoints.pol2cart(r, angle)

Transforms the provided polar coordinates to cartesian coordinates

Parameters:
  • r (ndarray of shape (num_points,)) – radius of each point

  • angle (ndarray of shape (num_points,)) – the angles in radians

Returns:

  • x (ndarray of shape (num_points,)) – x-coordinate of each point

  • y (ndarray of shape (num_points,)) – y-coordinate of each point