diff --git a/src/main.rs b/src/main.rs index 928f43c..f01b02e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -154,6 +154,6 @@ fn main() -> io::Result<()> { } fn edge_dist(a: Vec3, b: Vec3, base: Vec3, dir: Vec3) -> f32 { - Mat3 { c0: b - a, c1: base - a, c2: dir }.determinant() + // Note: given that the input is not arbitrary but comes from a cartesian product of certain (a, b) pairs and certain (base, dir) pairs, this can be optimized from Cnm to an+bm+cnm with c