Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Steve's basic SIN/COS Tutorial
#6
not bad Steve, you could throw in a couple more formulas, namely

the rotation matrix -- rotate any point (x,y) along the origin:
Code: (Select All)
newx = x*cos(angle) - y*sin(angle)
newy = x*sin(angle) + y*cos(angle)
bonus points if you derive it from scratch

and also, using trig to model any kind of oscillatory behavior, a radians crash course
Code: (Select All)
y = A * sin ( 2*pi * f * t )
where A is amplitude, or "height" of the sine wave, f for frequency or oscillation cycles/time with t being time or some other free parameter

and that's a fair overview of most of the trig you might require as a programmer
Reply


Messages In This Thread
Steve's basic SIN/COS Tutorial - by SMcNeill - 05-10-2024, 09:35 AM
RE: Steve's basic SIN/COS Tutorial - by grymmjack - 05-16-2024, 10:08 PM
RE: Steve's basic SIN/COS Tutorial - by SMcNeill - 05-16-2024, 10:41 PM
RE: Steve's basic SIN/COS Tutorial - by Pete - 07-12-2024, 01:57 AM
RE: Steve's basic SIN/COS Tutorial - by vince - 07-12-2024, 06:53 PM



Users browsing this thread: 1 Guest(s)