Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Equality Bug Grasshopper and C#?

$
0
0

EqualityBug.gh (17.6 KB)

Hello Rhinoceros Forum!

I do not understand the behavior of equality in this script:

if (two vectors are perpendicular to each other) { the dot Product is equal to 0 and the cos of the angle is equal to the dot Product }
So Why the expression :
dotProduct == Math.Cos(angle) output False?
and why if I connect the outputs to a panel or to a Number component the output is correct as True?
Is this a Bug of the Equality in Grasshopper an in C#?

Thanks for any explanation!

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles