Results 1 to 4 of 4

Thread: How to extract x and y from points?

  1. #1
    Join Date
    Mar 2013
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default How to extract x and y from points?

    if i have an array z[] of points(x,y)

    how do I get the x and y variables?

    i.e.

    z[0]'s x and y value

  2. #2
    Join Date
    Mar 2013
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    or actually, is there a function for determining distances between two TPoint (obv i could just do this myself if i could get the x and y values)? (though i'd still like to know the answer to my original question)
    Last edited by ookamocka; 03-08-2013 at 05:52 AM.

  3. #3
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    z[0].x
    z[0].y

    distance(x1,y1,x2,y2);

  4. #4
    Join Date
    Mar 2013
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    i kind of thought so but wasn't sure, thanks

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
  •