aboutsummaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorWalterPlinge <22519813+WalterPlinge@users.noreply.github.com>2021-02-23 20:10:43 +0000
committerWalterPlinge <22519813+WalterPlinge@users.noreply.github.com>2021-02-23 20:10:43 +0000
commit0e9dee62bfb0e172e01c87dd9665288dcc1db0b6 (patch)
tree7dcbbf27a18dcf807a6cb2db0d88b2ab359ae1db /core/math
parent533dde464848d8774e55e2fd9e267096c5af5d00 (diff)
Update extended.odin
Diffstat (limited to 'core/math')
-rw-r--r--core/math/linalg/extended.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/linalg/extended.odin b/core/math/linalg/extended.odin
index e9c5ef77e..3b0a04a56 100644
--- a/core/math/linalg/extended.odin
+++ b/core/math/linalg/extended.odin
@@ -421,7 +421,7 @@ face_forward :: proc(N, I, N_ref: $T) -> (out: T) where IS_ARRAY(T), IS_FLOAT(EL
return dot(N_ref, I) < 0 ? N : -N;
}
-distance :: proc(p0, p1: $V/[$N]$E) -> V where IS_NUMERIC(E) {
+distance :: proc(p0, p1: $V/[$N]$E) -> E where IS_NUMERIC(E) {
return length(p1 - p0);
}