Browse Source

Update extended.odin

WalterPlinge 4 years ago
parent
commit
0e9dee62bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/math/linalg/extended.odin

+ 1 - 1
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);
 }