Thread: sin() and cos() to draw shapes

  1. #1
    Registered User
    Join Date
    Dec 2015
    Posts
    34

    sin() and cos() to draw shapes

    Hi everyone, I have a question. Typically, I don't do anything 'graphical' when it comes to programming. however, I've been tinkering with it lately. I'm trying to learn how to draw shapes using sin() and cos() (for example a square or triangle). I've gone and I've looked up the maths to it and it seems pretty straight forward on paper, but I can't find any examples where this is implemented in programming other than to plot points for data.


    I wondered if anyone has an example of using sin and cos I could look at, even something as simple as a single line in which I could pull apart and play with.

  2. #2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Printing Shapes
    By cpsestudent in forum C Programming
    Replies: 7
    Last Post: 02-16-2011, 05:05 PM
  2. How to draw shapes with only for loops?
    By CplusplusNewb in forum C++ Programming
    Replies: 16
    Last Post: 10-17-2009, 04:09 PM
  3. Counting shapes
    By Tupcia in forum C++ Programming
    Replies: 1
    Last Post: 09-27-2008, 09:03 PM
  4. How to draw shapes and output?
    By Diablo02 in forum C# Programming
    Replies: 3
    Last Post: 11-20-2007, 07:11 PM
  5. Draw Shapes.
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 08-19-2002, 09:22 AM