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/test2.yap
2009-02-20 11:44:00 +00:00

14 lines
234 B
Prolog

:- nogc.
overlap(A,B) :-
attributes:get_all_atts(A,C),
attributes:put_att_term(A,overlap(C,B)).
:- udi(rect(-,+)).
:- ['roads.yap'].
r(ID1,ID2) :-
rect(ID1,R1),
overlap(R2,R1),
rect(ID2,R2).