mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-06-28 14:16:24 +02:00
Moved ordering of two int64 to common/math.
This commit is contained in:
@ -58,3 +58,10 @@ func Clamp32f(x, a, b float32) float32 {
|
||||
}
|
||||
return x
|
||||
}
|
||||
|
||||
func Order64(a, b int64) (int64, int64) {
|
||||
if a < b {
|
||||
return a, b
|
||||
}
|
||||
return b, a
|
||||
}
|
||||
|
Reference in New Issue
Block a user