0

Scripting: == and != operators for vectors and quaternions

Right now, if I want to tell if two vectors are the same, I need to do something like this:

if ((V1 - V2).LengthSquared() == 0) { ... }

While this works, it's inelegant and harder to read.

Same thing for basic == and != operators for quaternions.

8 comments

Please sign in to leave a comment.