mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Geometry: Reverte purge algorithme to previous version (modified).
This commit is contained in:
1 parent
4ba232a7e4
commit
37ea9e9083
2 files changed
+32
-34
No files matched your search
@@ -373,8 +373,8 @@ class PointXYZ(Point):
|
||||
c = PointXYZ.distance(p3, p1)
|
||||
|
||||
s = float((a + b + c) / 2)
|
||||
res = (
|
||||
s * abs(s - a) * abs(s - b) * abs(s - c)
|
||||
res = abs(
|
||||
s * (s - a) * (s - b) * (s - c)
|
||||
) ** 0.5
|
||||
|
||||
return res
|
||||
Reference in new issue
Block a user