Форум: "Основная";
Текущий архив: 2002.04.11;
Скачать: [xml.tar.bz2];
ВнизRectInRect Найти похожие ветки
← →
Song (2002-03-30 13:54) [1]Чисто гепатетически должно так получиться, первое, что в голову пришло:
Function IsRectangleUnion(Rect1,Rect2:TRect):Boolean;
Begin
Result:=(Rect1.Left in [Rect2.Left..Rect2.Right]) or
(Rect1.Right in [Rect2.Left..Rect2.Right]) or
(Rect1.Top in [Rect2.Top..Rect2.Bottom]) or
(Rect1.Bottom in [Rect2.Top..Rect2.Bottom]) or
(Rect2.Left in [Rect1.Left..Rect1.Right]) or
(Rect2.Right in [Rect1.Left..Rect1.Right]) or
(Rect2.Top in [Rect1.Top..Rect1.Bottom]) or
(Rect2.Bottom in [Rect1.Top..Rect1.Bottom]);
End;
Страницы: 1 вся ветка
Форум: "Основная";
Текущий архив: 2002.04.11;
Скачать: [xml.tar.bz2];
Память: 0.43 MB
Время: 0.006 c