07-12-2024, 06:53 PM
not bad Steve, you could throw in a couple more formulas, namely
the rotation matrix -- rotate any point (x,y) along the origin:
bonus points if you derive it from scratch
and also, using trig to model any kind of oscillatory behavior, a radians crash course
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
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)
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 )
and that's a fair overview of most of the trig you might require as a programmer