Closed yanone closed 1 year ago
The current code calculates 213 as the careSlopeRun instead of 206 for -12°, which is probably close enough that no one ever noticed the mistake.
good catch, please send PR thanks
My proposal is wrong. ufo2ft had it right all along.
The two lines at the top and bottom here are wrong.
math.atan()
is used to calculate the triangle legs from a given angle,math.tan()
is used for the inverse, to calculate the angle from the leg length.This is correct:
prints:
I can make a PR.