Coordinate¶
-
class
foronoi.graph.Coordinate(x=None, y=None)¶ A point in 2D space
- Parameters
x (float) – The x-coordinate
y (float) – The y-coordinate
-
property
x¶ Get the x-coordinate as float
- Returns
x – The x-coordinate
- Return type
float
-
property
xd¶ Get the x-coordinate as Decimal
- Returns
x – The x-coordinate
- Return type
Decimal
-
property
xy¶ Get a (x, y) tuple
- Parameters
xy ((float, float)) – A tuple of the (x, y)-coordinate
-
property
y¶ Get the y-coordinate as float
- Returns
y – The y-coordinate
- Return type
float
-
property
yd¶ Get the y-coordinate as Decimal
- Returns
y – The y-coordinate
- Return type
Decimal