mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-20 18:06:42 +00:00
Merge branch 'master' of https://github.com/odin-lang/Odin
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package linalg
|
||||
|
||||
import "core:math"
|
||||
import "intrinsics"
|
||||
|
||||
|
||||
// Specific
|
||||
|
||||
@@ -116,7 +116,7 @@ unlerp :: proc{unlerp_f32, unlerp_f64};
|
||||
|
||||
wrap :: proc(x, y: $T) -> T where intrinsics.type_is_numeric(T), !intrinsics.type_is_array(T) {
|
||||
tmp := mod(x, y);
|
||||
return wrap + tmp if tmp < 0 else tmp;
|
||||
return y + tmp if tmp < 0 else tmp;
|
||||
}
|
||||
angle_diff :: proc(a, b: $T) -> T where intrinsics.type_is_numeric(T), !intrinsics.type_is_array(T) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user