RTrig - backwards?

it seems the A & B values are reversed in this example:

RTrigQ.gh (7.6 KB)

i’d expect A to be ~14º here instead of ~76º.

is there a reason for it to be this way or is it a glitch?
(does it work as expected on windows?)

(maybe something to do with the RTrig image being in XY and my triangle is vertical?)

No it fails on windows as well. It just appears to be a bug in the component.

ok… thanks for checking it out.
i’ll just use it for now with the opposite wires then switch it up in the future.

Or you could use an Expression with Atan2() and that will work forever:

1 Like