Bullseye#
- class data_morph.shapes.circles.Bullseye(dataset: Dataset)[source]#
Bases:
Shape
Class representing a bullseye shape comprising two concentric circles.
This shape is generated using the panda dataset.#
- Parameters:
dataset (Dataset) – The starting dataset to morph into other shapes.
- circles: list[data_morph.shapes.circles.Circle]#
The inner and outer
Circle
objects.
- distance(x: Number, y: Number) float [source]#
Calculate the minimum absolute distance between this bullseye’s inner and outer 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 this bullseye’s inner and outer circles’ edges and the point (x, y).
- Return type:
See also
Circle.distance
A bullseye consists of two circles, so we use the minimum distance to one of the circles.