UnitVecor IsEqualTo tolerance units

UnitVecor IsEqualTo tolerance units

Josh_Hunt
Advocate Advocate
419 Views
2 Replies
Message 1 of 3

UnitVecor IsEqualTo tolerance units

Josh_Hunt
Advocate
Advocate

REFERENCE https://help.autodesk.com/view/INVNTOR/2025/ENU/?guid=UnitVector_IsEqualTo

 

I was guessing tolerance argument was in radian units as the angle between them but is not accurate.

 

This IsEqualTo method switched from false to true when tolerance is between 1.41 and 1.42. The angle between them is half PI radians.

What 'units' is tolerance?

Maybe I need to learn more Math!

UV_X: 1, 0, 0
UV_Y: 0, 1, 0
UV_X angle to UV_Y = 1.5707963267949 radians
UV_X  isEqualTo  UV_Y ?
    False   (tolerance = 1.3)
    False   (tolerance = 1.31)
    False   (tolerance = 1.32)
    False   (tolerance = 1.33)
    False   (tolerance = 1.34)
    False   (tolerance = 1.35)
    False   (tolerance = 1.36)
    False   (tolerance = 1.37)
    False   (tolerance = 1.38)
    False   (tolerance = 1.39)
    False   (tolerance = 1.4)
    False   (tolerance = 1.41)
    True   (tolerance = 1.42)
    True   (tolerance = 1.43)
    True   (tolerance = 1.44)
    True   (tolerance = 1.45)
    True   (tolerance = 1.46)
    True   (tolerance = 1.47)
    True   (tolerance = 1.48)
    True   (tolerance = 1.49)
    True   (tolerance = 1.5)
    True   (tolerance = 1.51)
    True   (tolerance = 1.52)
    True   (tolerance = 1.53)
    True   (tolerance = 1.54)
    True   (tolerance = 1.55)
    True   (tolerance = 1.56)
    True   (tolerance = 1.57)
    True   (tolerance = 1.58)
    True   (tolerance = 1.59)

 

Josh Hunt
0 Likes
Accepted solutions (1)
420 Views
2 Replies
Replies (2)
Message 2 of 3

Michael.Navara
Advisor
Advisor
Accepted solution

I don't know how the tolerance is implemented. But the limit is square root of 2 (1,41421356...). This value corresponds with the distance between points defined by this vectors. 

 
 

2024-06-20_9-11-12.png

 

Message 3 of 3

Josh_Hunt
Advocate
Advocate

Thank you @Michael.Navara 

That makes much more sense.

Josh Hunt
0 Likes