sorbetto.geometry.point module

class sorbetto.geometry.point.Point(x: float, y: float, name: str | None = None)[source]

Bases: AbstractGeometricObject2D

This class is used to represent points. See https://en.wikipedia.org/wiki/Point_(geometry)

draw(fig: Figure, ax: Axes, extent, **plt_kwargs)[source]

If the point is withing some axis-aligned box, then plots it in some given Pyplot axes.

Parameters:
  • fig (_type_) – a Pyplot Figure object

  • ax (_type_) – a Pyplot Axes object

  • extent (_type_) – the axis-aligned box \((x_{min}, x_{max}, y_{min}, y_{max})\)

  • plt_kwargs – options for Pyplot’s plot command.

property x: float

The first coordinate, \(x\), of the point \((x,y)\).

Returns:

\(x\)

Return type:

float

property y: float

The second coordinate, \(y\), of the point \((x,y)\).

Returns:

\(y\)

Return type:

float