mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Refacto and fix purge method.
This commit is contained in:
1 parent
76ce34c4ea
commit
7181122a3a
6 files changed
+55
-47
No files matched your search
@@ -368,5 +368,10 @@ class PointXYZ(Point):
|
||||
a = PointXYZ.distance(p1, p2)
|
||||
b = PointXYZ.distance(p2, p3)
|
||||
c = PointXYZ.distance(p3, p1)
|
||||
s = (a + b + c) / 2
|
||||
return (s*(s-a) * (s-b)*(s-c)) ** 0.5
|
||||
|
||||
s = float((a + b + c) / 2)
|
||||
res = (
|
||||
s * abs(s - a) * abs(s - b) * abs(s - c)
|
||||
) ** 0.5
|
||||
|
||||
return res
|
||||
Reference in new issue
Block a user