How to get 'perpendicularity' of two vectors?

Dot product gives us something very similar, but not exactly what I’m looking for. I’ve explained it here:

226603-perpendicularity.png

Is there a way to calculate the ‘perpendicularity’ factor like that? For example, the Dot Product gives 0.7 at 45 degrees, not 0.5… But maybe we can use it somehow?

I’d be grateful for some hints :slight_smile:

Thank you very much! Indeed, this seems to return correct values :slight_smile: Nice, elegant solution. Cheers!

I’m not sure if this is best solution, but seems to work (put angle as ‘x’):

f(x)=1-ABS(1-MOD(x,180)/90)