1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Rep Power

    print a shape at a certain angle [Graphics]...

    I am working on a program that requires me to simulte a rectangle rotating in a circle (actually it's a car that's U turning and cornering), Now I know the angle at which the car should turn, Is there a function in "graphics.h" that takes an angle and coordinates of a rectangle/triangle and prints the shape on that angle?

    I know there isn't one, but then how do I do that...
    posted by: justujoo

    Error 13: BRAIN.SYS not responding, process terminted...!
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    Try Googling for Rotation Matrix. Bet you are wishing you'd paid more attention in trignometry class :).

IMN logo majestic logo threadwatch logo seochat tools logo