From 264601b8c7e0993585ccf2c99d00631bcffa5db5 Mon Sep 17 00:00:00 2001 From: numzero Date: Sat, 20 Apr 2024 18:47:40 +0300 Subject: [PATCH] Note to myself --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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