Ejemplo n.º 1
0
func (a Position) Less(b Position) bool {
	return rational.Less(rational.Rational(a), rational.Rational(b))
}
Ejemplo n.º 2
0
func (a Duration) Greater(b Duration) bool {
	return rational.Greater(rational.Rational(a), rational.Rational(b))
}
Ejemplo n.º 3
0
func (p Position) Add(d Duration) Position {
	return Position(rational.Add(rational.Rational(p), rational.Rational(d)))
}
Ejemplo n.º 4
0
func (d Duration) Add(other Duration) Duration {
	return Duration(rational.Add(rational.Rational(d), rational.Rational(other)))
}