Recent

Author Topic: IntersectRect  (Read 6269 times)

T-bear

  • Full Member
  • ***
  • Posts: 160
IntersectRect
« on: May 28, 2011, 07:08:43 pm »
Hi,
In wich Unit is the function Intersectrect (http://lazarus-ccr.sourceforge.net/docs/rtl/types/intersectrect.html)

Because when i use Intersectrect, i get Identifier not found "Intersectrect".  :(

Thanks!
« Last Edit: May 28, 2011, 07:12:38 pm by T-bear »

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: IntersectRect
« Reply #1 on: May 28, 2011, 07:12:13 pm »
Unit Types.

T-bear

  • Full Member
  • ***
  • Posts: 160
Re: IntersectRect
« Reply #2 on: May 28, 2011, 07:13:53 pm »
And what is the third/first rectangle good for?

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: IntersectRect
« Reply #3 on: May 28, 2011, 07:24:05 pm »
I don't understand.

IntersectRect returns the intersection of the 2 rectangles R1 and R2 in Rect. It returns True if the 2 rectangles have an intersection, otherwise False is returned, and Rect is filled with zero.
« Last Edit: May 28, 2011, 07:25:59 pm by typo »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8834
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: IntersectRect
« Reply #4 on: May 29, 2011, 03:15:42 pm »
Quote
And what is the third/first rectangle good for?
The explanation is clear. 2nd and 3rd parameter is intersected and the resulting intersection rect is placed in 1st parameter.

 

TinyPortal © 2005-2018