Exemple #1
0
func (m *Mass) Check() bool {
	if C.dMassCheck((*C.dMass)(m)) == 0 {
		return false
	} else {
		return true
	}
}
Exemple #2
0
// Check returns whether the mass's parameter values are valid.
func (m *Mass) Check() bool {
	c := &C.dMass{}
	m.toC(c)
	return C.dMassCheck(c) != 0
}