Beispiel #1
0
// Add adds the other mass to this mass.
func (m *Mass) Add(other *Mass) {
	c, oc := &C.dMass{}, &C.dMass{}
	m.toC(c)
	other.toC(oc)
	C.dMassAdd(c, oc)
	m.fromC(c)
}
Beispiel #2
0
func (m *Mass) Add(b *Mass) {
	C.dMassAdd((*C.dMass)(m), (*C.dMass)(b))
}