Bullseye#
- class data_morph.shapes.circles.Bullseye(dataset: Dataset)[source]#
Bases:
Rings
Class representing a bullseye shape comprising two concentric circles.
- Parameters:
dataset (Dataset) – The starting dataset to morph into other shapes.
See also
Rings
The Bullseye is a special case where we only have 2 rings.
- distance(x: Number, y: Number) float #
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.