Пример #1
0
func (m *Mass) Adjust(newmass Real) {
	C.dMassAdjust((*C.dMass)(m), C.dReal(newmass))
}
Пример #2
0
// Adjust sets parameters based on the given total mass.
func (m *Mass) Adjust(mass float64) {
	c := &C.dMass{}
	m.toC(c)
	C.dMassAdjust(c, C.dReal(mass))
	m.fromC(c)
}