it seems ridiculous but I can’t figure out why v3 and v4 are not equal.
It’s revit 2022 so the class vector is not in use anymore. How can I check if two vectors are equals?
this is because how the PC calculate the values , this is 1 not equal exactly 1 , it maybe 0.9999999999 sth like that and it is almost 1
so try to use Geometry.IsAlmostEqualTo instead
or you can use the following formula by using a tolerance value
Math.Abs(a - b) <= tol
Thanks a Lot!