fix: remove unused double precision function

This commit is contained in:
2025-05-02 14:36:56 +02:00
parent c89f35bc6e
commit 8715f4d8c3

View File

@@ -453,20 +453,6 @@ module Util =
(neg && pos) |> not
let inline isInsideTriangle_dbl (x, y, z) p =
let sign (p1x, p1y) (p2x, p2y) (p3x, p3y) =
(p1x - p3x) * (p2y - p3y)
- (p2x - p3x) * (p1y - p3y)
let d1 = sign p x y
let d2 = sign p y z
let d3 = sign p z x
let neg = (d1 <= 0.0) || (d2 <= 0.0) || (d3 <= 0.0)
let pos = (d1 >= 0.0) || (d2 >= 0.0) || (d3 >= 0.0)
(neg && pos) |> not
// make a kd-tree for looking up nearest node
let buildNearestNodeTree (grid: IGrid) =
grid.getVertices ()