Misc Utility Functions¶
Contents
arcade.rand_in_circle¶
- arcade.rand_in_circle(center: Union[Tuple[float, float], List[float]], radius: float)[source]¶
Generate a point in a circle, or can think of it as a vector pointing a random direction with a random magnitude <= radius Reference: https://stackoverflow.com/a/30564123 Note: This algorithm returns a higher concentration of points around the center of the circle