This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/udi/test.yap
2009-02-20 11:44:00 +00:00

15 lines
289 B
Prolog

:- nogc.
%% {A,B} :-
%% {A},{B}.
overlap(A,B) :-
attributes:get_all_atts(A,C),
attributes:put_att_term(A,overlap(C,B)).
:- udi(rect(+,-)).
rect([0,0,2,2],1).
rect([5,5,7,7],2).
rect([8, 5, 9, 6],3).
rect([7, 1, 9, 2],4).
%:- overlap(R,[6, 4, 10, 6]), rect(R,ID).