geometry: Rename point XY to AC.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-04-03 17:24:53 +02:00
1 parent 2ed051bb41
commit 3c58c2d64d
2 files changed
+37 -19

No files matched your search

+19 -1
View File
@@ -5,16 +5,34 @@ from pandas import isna as pd_is_na
from Model.Geometry.PointXY import PointXY
class PointXYZ(PointXY):
class PointXYZ(Point):
def __init__(self, x:float = 0.0, y:float = 0.0, z:float = 0.0,
name:str = ""):
super(PointXYZ, self).__init__(x=x, y=y, name=name)
self._x = float(x)
self._y = float(y)
self._z = float(z)
def __repr__(self):
return f"({self._x}, {self._y}, {self._z}, {self._name})"
@property
def x(self):
return self._x
@x.setter
def x(self, value):
self._x = float(value)
@property
def y(self):
return self._y
@y.setter
def y(self, value):
self._y = float(value)
@property
def z(self):
return self._z