Oh, I see my problem! I was checking the math with WolframAlpha and it assumed the values I plugged in were degree values. Turns out my code works! Thanks for the reminder about the radians.
Type: Posts; User: Phyoke
Oh, I see my problem! I was checking the math with WolframAlpha and it assumed the values I plugged in were degree values. Turns out my code works! Thanks for the reminder about the radians.
I have a small bit of code that should accept an input as a double and use that input value in an equation with tan() and cos()...but it doesn't work and I don't know why. Here's my code:
...