So I have a model with a bunch of stuff that is slightly off axis. I wanted to quickly know how many grids were off axis. I thought it would be simple but maybe not? I figured Math.Floor and == would be the quickest way to check and see if a girds angle was an integer or a number.
As you can see the grids that are at 180 round down to 179 but the ones at 90 stay at 90. Is this because it is so close that dynamo displays a rounded number with Vector.AngleWithVector when its really 179.somthing?
== then also returns true for 90.00000000000003 and its rounded counter part 90. I would expect a false value here.
Thanks for any insight,