Results 1 to 3 of 3

Thread: Point within an area?

  1. #1
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default Point within an area?

    Any simple procedures to search for a set point within an specified area? Maybe something like:
    Simba Code:
    PointInArea(Point:TPoint; xs,ys,xe,ye:integer): boolean;
    Or something along those lines?

  2. #2
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    PointInBox( TPoint, TBox): boolean;

    and you can do it like this PointInBox( Point(x, y), IntToBox(xs,ys,xe,ye)): boolean;
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  3. #3
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    That's what I was looking for, thank you Narcle! I had found PointInBox, but I had no idea how to specify the box, which is where 'IntToBox' comes in, what a great function that is.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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