Ejemplo n.º 1
0
Archivo: mass.go Proyecto: krux02/gode
func (m *Mass) SetCylinderTotal(total_mass Real, direction int, radius, length Real) {
	C.dMassSetCylinderTotal((*C.dMass)(m), C.dReal(total_mass), C.int(direction), C.dReal(radius), C.dReal(length))
}
Ejemplo n.º 2
0
// SetCylinderTotal sets the mass for a cylinder of given properties.
func (m *Mass) SetCylinderTotal(totalMass float64, direction int, radius, length float64) {
	c := &C.dMass{}
	C.dMassSetCylinderTotal(c, C.dReal(totalMass), C.int(direction), C.dReal(radius),
		C.dReal(length))
	m.fromC(c)
}