mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-07 02:54:18 +00:00
Fix atan2 by swapping the arguments internally
This commit is contained in:
@@ -1386,7 +1386,7 @@ atan2 :: proc{
|
||||
}
|
||||
|
||||
atan :: proc "contextless" (x: $T) -> T where intrinsics.type_is_float(T) {
|
||||
return atan2(1, x)
|
||||
return atan2(x, 1)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user