Exemplo n.º 1
0
Arquivo: mass.go Projeto: krux02/gode
func (m *Mass) SetSphereTotal(total_mass, radius Real) {
	C.dMassSetSphereTotal((*C.dMass)(m), C.dReal(total_mass), C.dReal(radius))
}
Exemplo n.º 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)
}