mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
geometry: Clean up some code and continue refactoring of geometry view.
This commit is contained in:
1 parent
fa9d95c7e7
commit
0d08ca3889
7 files changed
+217
-721
No files matched your search
@@ -47,7 +47,7 @@ class PointXYZ(Point):
|
||||
Returns:
|
||||
True if at least one coordinate is as np.nan
|
||||
"""
|
||||
return pd_is_na(self.x()) or pd_is_na(self.y()) or pd_is_na(self.z())
|
||||
return pd_is_na(self.x) or pd_is_na(self.y) or pd_is_na(self.z)
|
||||
|
||||
@staticmethod
|
||||
def distance(p1, p2):
|
||||
@@ -60,4 +60,4 @@ class PointXYZ(Point):
|
||||
Returns:
|
||||
Euclidean distance between the two points
|
||||
"""
|
||||
return dist((p1.x(), p1.y(), p1.z()), (p2.x(), p2.y(), p2.z()))
|
||||
return dist((p1.x, p1.y, p1.z), (p2.x, p2.y, p2.z))
|
||||
Reference in new issue
Block a user