Exemplo n.º 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
}
Exemplo n.º 2
0
func (t *Transform) CheckInverse(tol float32) int32 {
	return int32(C.al_check_inverse((*C.ALLEGRO_TRANSFORM)(unsafe.Pointer(t)), C.float(tol)))
}