draw2d/math.go

12 lines
209 B
Go
Raw Normal View History

2011-04-27 08:06:14 +00:00
// Copyright 2010 The draw2d Authors. All rights reserved.
// created: 21/11/2010 by Laurent Le Goff
2012-04-17 09:03:56 +00:00
2011-04-27 08:06:14 +00:00
package draw2d
func minMax(x, y float64) (min, max float64) {
if x > y {
return y, x
}
return x, y
}