Thread: Coordinate Plane

  1. #1
    Registered User
    Join Date
    Sep 2002

    Coordinate Plane

    Hello. I would like to make a coordinate plane. If i would have two coordinate. (2,1) and (4,2), for example it would plot a line passing through those two points. if anybody could direct me on how to do this, it would be appreciated. keep in mind, i have no idea how to.

  2. #2
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    well i would draw a big grid... where there is a definite address in each intersection.. like in BGI graphics mode say
    10,10  15,10  20,10
    10,15  15,15  20,15
       |            |
       |            |
       |            |
    and so on...

    and i will have functions which when i say connect(1,1,1,2)

    which means connec 1,2 and 1,1

    i will convert that to the actual position on the screen

    say 1,1 might be 10,10 and 1,2 might be 10,15..

    then i would call the function, line(10,10,10,15) which will connect those tow points...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Insane far plane
    By VirtualAce in forum Game Programming
    Replies: 0
    Last Post: 09-24-2008, 11:36 PM
  2. create plane in 3D and
    By michi7 in forum Tech Board
    Replies: 6
    Last Post: 07-22-2008, 03:31 PM
  3. Textured plane suggestions
    By VirtualAce in forum Game Programming
    Replies: 9
    Last Post: 04-20-2004, 09:28 PM
  4. Clipping plane prob?
    By gazsux in forum Game Programming
    Replies: 7
    Last Post: 07-04-2003, 09:49 PM
  5. Code for a Coordinate Plane
    By Isometric in forum Windows Programming
    Replies: 2
    Last Post: 11-13-2001, 11:20 PM