Example #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)
}
Example #2
0
File: mass.go Project: krux02/gode
func (m *Mass) Add(b *Mass) {
	C.dMassAdd((*C.dMass)(m), (*C.dMass)(b))
}