// 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) }
func (m *Mass) Add(b *Mass) { C.dMassAdd((*C.dMass)(m), (*C.dMass)(b)) }