Beispiel #1
0
func (m *Mass) SetSphereTotal(total_mass, radius Real) {
	C.dMassSetSphereTotal((*C.dMass)(m), C.dReal(total_mass), C.dReal(radius))
}
Beispiel #2
0
// SetSphereTotal sets the mass for a sphere of given properties.
func (m *Mass) SetSphereTotal(totalMass, radius float64) {
	c := &C.dMass{}
	C.dMassSetSphereTotal(c, C.dReal(totalMass), C.dReal(radius))
	m.fromC(c)
}