Results 1 to 10 of 35

Thread: Pascal eXtended Library (aka Asphyre) released!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Sphinx304:
    Code:
    function OverlapRect(const Rect1, Rect2: TRect): Boolean;
    begin
       Result:= (Rect1.Left < Rect2.Right) and (Rect1.Right >  Rect2.Left) and (Rect1.Top < Rect2.Bottom) and (Rect1.Bottom > Rect2.Top);
    end;
    PXL:
    Code:
    function OverlapRect(const Rect1, Rect2: TIntRect): Boolean;
    begin
      Result := (Rect2.Left < Rect1.Right) and (Rect2.Right > Rect1.Left) and (Rect2.Top < Rect1.Bottom) and
        (Rect2.Bottom > Rect1.Top);
    end;
    dear LP, It took me two hours to debug the changes...
    Last edited by SilverWarior; 11-11-2015 at 05:55 PM. Reason: Adding code tags

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •