github.com/pavlo67/common@v0.5.3/common/mathlib/range.go (about)

     1  package mathlib
     2  
     3  type Range [2]float64
     4  
     5  func (r *Range) Canon() {
     6  	if r[0] > r[1] {
     7  		r[0], r[1] = r[1], r[0]
     8  	}
     9  }