Rings#
- class data_morph.shapes.circles.Rings(dataset: Dataset, num_rings: int = 4)[source]#
Bases:
Shape
Class representing rings comprising multiple concentric circles.
- Parameters:
See also
Circle
The individual rings are represented as circles.
- distance(x: Number, y: Number) float [source]#
Calculate the minimum absolute distance between any of this shape’s circles’ edges and a point (x, y).
- Parameters:
x (numbers.Number) – Coordinates of a point in 2D space.
y (numbers.Number) – Coordinates of a point in 2D space.
- Returns:
The minimum absolute distance between any of this shape’s circles’ edges and the point (x, y).
- Return type:
See also
Circle.distance
Rings consists of multiple circles, so we use the minimum distance to one of the circles.