Exemplo n.º 1
0
Arquivo: mass.go Projeto: krux02/gode
func (m *Mass) SetCylinder(density Real, direction int, radius, length Real) {
	C.dMassSetCylinder((*C.dMass)(m), C.dReal(density), C.int(direction), C.dReal(radius), C.dReal(length))
}
Exemplo n.º 2
0
// SetCylinder sets the mass for a cylinder of given properties.
func (m *Mass) SetCylinder(density float64, direction int, radius, length float64) {
	c := &C.dMass{}
	C.dMassSetCylinder(c, C.dReal(density), C.int(direction), C.dReal(radius),
		C.dReal(length))
	m.fromC(c)
}