Results 1 to 7 of 7

Thread: From, FromFirstPoint...sorting ATPAs

  1. #1
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default From, FromFirstPoint...sorting ATPAs

    Alright can someone tell me the difference between

    SortATPAFrom
    and
    SortATPAFromFirstPoint

    I'm spliting a TPA of bank colors into ATPAs of about 30x30 then from largest to smallest. My goal is to find a way to kind of sort by overall size and distance from MSCX, MSCY so it finds the nearest bank booth.

    The reason I am posting this is because I can't find a clear difference between the two mentioned functions. Can someone clearly explain the differences?

  2. #2
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    SortATPAFrom sorts each TPA from the point, FromFirstPoint sorts the ATPAs around the point starting from the first point.

    I hope that explains it!
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  3. #3
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    SortATPAFrom sorts each TPA from the point, FromFirstPoint sorts the ATPAs around the point starting from the first point.

    I hope that explains it!
    So you're saying ATPAFrom wouldn't rearrage the order of my ATPAs? Only the points inside them? And ATPAFromFirstPoint would just rearrange the order of ATPAs?

    And what is the "first point'?

  4. #4
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    So you're saying ATPAFrom wouldn't rearrage the order of my ATPAs? Only the points inside them? And ATPAFromFirstPoint would just rearrange the order of ATPAs?

    And what is the "first point'?
    i think the "first point" is the first point that the function finds
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  5. #5
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    So you're saying ATPAFrom wouldn't rearrage the order of my ATPAs? Only the points inside them? And ATPAFromFirstPoint would just rearrange the order of ATPAs?

    And what is the "first point'?
    Exactly
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  6. #6
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    i think the "first point" is the first point that the function finds
    If what you are saying is true, then what is the purpose of 'From: TPoint'?

  7. #7
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    If what you are saying is true, then what is the purpose of 'a'?
    The first point is Point[i][0] where i is cycled through. It literally means Sort these arrays based on the location of the FirstPoint in each individual TPA.

    Check out the sauce if you don't believe me.

    (That came off rather passive aggressive, just want to point out that it is in no way intended that way)
    Last edited by Nava2; 11-25-2009 at 10:30 PM.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

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
  •