예제 #1
0
func (p Position) Add(d Duration) Position {
	return Position(rational.Add(rational.Rational(p), rational.Rational(d)))
}
예제 #2
0
func (d Duration) Add(other Duration) Duration {
	return Duration(rational.Add(rational.Rational(d), rational.Rational(other)))
}