shasta.utils#

Module Contents#

Functions#

get_initial_positions(cartesian_pos, r, n)

Initial position for actor in the form of a ring

get_initial_positions(cartesian_pos, r, n)[source]#

Initial position for actor in the form of a ring

Parameters:
  • cartesian_pos (array) – Initial cartesian pos

  • r (float) – Radius of formation

  • n (int) – Number of points in the circle

Returns:

An array of points in the form of a ring

Return type:

array