Results 1 to 3 of 3

Math Help - calculating coordinates for a pattern

  1. #1
    Newbie
    Joined
    Mar 2010
    Posts
    2

    calculating coordinates for a pattern

    Hi


    I am trying to make a loop that will produce squares in the following pattern:






    I am doing this by plotting coordinates so for example:


    starting position: 0,0
    move to: 500,0
    move to: 500,500
    move to 0,500
    move to: 0,0


    starting position: 250,0
    move to: 500,250
    move to: 250,500
    move to: 0,250
    move to: 250,0


    I am trying to figure out if there's an algorithm I could use to determine the coordinates for the next set of lines. I've spent so long on this and still can't seem to get my head around it, I'm not even sure if it's possible any more.
    Any help would be greatly appreciated.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Member alexgeek's Avatar
    Joined
    Mar 2010
    From
    Wales, UK
    Posts
    77
    Are you using a program for this or are you using a programming language?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Mar 2010
    Posts
    2
    Quote Originally Posted by alexgeek View Post
    Are you using a program for this or are you using a programming language?
    I'm using javascript and the html5 <canvas> element.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Calculating an angle in 3D coordinates
    Posted in the Geometry Forum
    Replies: 8
    Last Post: September 6th 2011, 12:15 PM
  2. Calculating Coordinates
    Posted in the Differential Geometry Forum
    Replies: 1
    Last Post: March 14th 2010, 09:23 PM
  3. Help with calculating coordinates.
    Posted in the Algebra Forum
    Replies: 1
    Last Post: October 12th 2009, 05:16 PM
  4. Replies: 1
    Last Post: January 16th 2008, 09:12 PM
  5. Calculating Angle from Coordinates.
    Posted in the Trigonometry Forum
    Replies: 3
    Last Post: February 14th 2007, 02:01 PM

Search Tags


/mathhelpforum @mathhelpforum