Qbasicnews.com
April 05, 2020, 05:12:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: sin, cos, and rotating stuff  (Read 1341 times)
whitetiger0990
__/--\__
*****
Posts: 2964



WWW
« on: June 30, 2003, 11:47:43 AM »

umm. i need help understading these 3 things. :oops:
Logged


[size=10]Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.[/size]
Mango
Wandering Guru
***
Posts: 360



« Reply #1 on: June 30, 2003, 12:30:59 PM »

Quote from: "whitetiger0990"
umm. i need help understading these 3 things. :oops:


whitetiger,

You basically are asking for knowledge og trigonometry.   trig is pretty simple...but requires an understanding of pythag theorm and the concept of the "unit circle".  

Pythagorium (sp) says that for any right triangle, a^2 + b^2 = c^2, where c is the hypotenuse (long side) of the triangle, and a and b are the short sides.

the unit circle is described as follows:

imagine you have a circle radius 1.  Stick the circle with center at 0,0 (x,y) on a grid.  This is known as the "unit circle".  Now...draw a line from any point on the circle to 0,0 (the origin).  If you take 0 degrees as a line from (0,0) to (1,0), then...for any angle, the x,y coordinates of a point on the circle can be represented by sin & cos.  In every case, the hypotinuse (radius) will be 1.  sin (angle) will be the (y value / 1).  cos (angle) will be (x value / 1).   tan(angle) is (y/x) of the point on the circle.  

This info is the basis of trig and can be used to rotate objects.  Trig is basically a way to deal with angles and circles using algebra.  

convince yourself that the py's theorom is correct, and make sense of the unit circle, and lots of people will be glad to help you with implementing rotation code.

cheers.
Logged
whitetiger0990
__/--\__
*****
Posts: 2964



WWW
« Reply #2 on: June 30, 2003, 12:49:14 PM »

that is simple. thanks  
Logged


[size=10]Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.[/size]
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!