Вниз
Скачать: CL | DM;

RectInRect   Найти похожие ветки 

← →
Manwe   (2002-03-30 13:45) [0]

Помогите написать функцию определяющую наличие общих точек у двух прямоугольников
function RectInRect(Rect1,Rect2:TRect):Boolean;


← →
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;


← →
Лёша ©   (2002-03-30 13:58) [2]

IntersectRect(...): boolean;
Определяет ещё координаты полученного Rect.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.012 c
14-32952
ShaggyDoc
2002-03-01 11:07
2002.04.11
www.delphipages.com - это не вымысел?


6-32927
vinni2000
2002-01-24 09:56
2002.04.11
Меседж


1-32725
Rogot
2002-03-30 05:45
2002.04.11
Form


6-32924
Di_wind
2002-01-27 21:43
2002.04.11
Winroute


7-33000
tormoz
2002-01-16 20:25
2002.04.11
Вопрос тем, кто работал с Shell ом




   Наверх