Example #1
0
func (t *Transform) HasInverse(tolerance float32) bool {
	var b bool

	b = C.al_check_inverse((*C.ALLEGRO_TRANSFORM)(t), C.float(tolerance)) != C.int(0)

	return b
}
Example #2
0
func (t *Transform) CheckInverse(tol float32) int32 {
	return int32(C.al_check_inverse((*C.ALLEGRO_TRANSFORM)(unsafe.Pointer(t)), C.float(tol)))
}