mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Update extended.odin
This commit is contained in:
@@ -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;
|
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);
|
return length(p1 - p0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user