Menu

#72 diff_angle for the same vectors returns non zero

closed-fixed
nobody
None
5
2005-12-17
2005-06-21
ashot
No

>v = vector()
>v2 = vector()
Lv.diff_angle(v2)
1.5707963267948966

Discussion

  • Bruce Sherwood

    Bruce Sherwood - 2005-10-12

    Logged In: YES
    user_id=34881

    This function is undefined in the case where either of the
    vectors is (0,0,0), as is the case with vector(). So this
    isn't really a "bug".

     
  • Bruce Sherwood

    Bruce Sherwood - 2005-10-12
    • status: open --> closed-wont-fix
     
  • Bruce Sherwood

    Bruce Sherwood - 2005-12-17
    • status: closed-wont-fix --> closed-fixed
     
  • Bruce Sherwood

    Bruce Sherwood - 2005-12-17

    Logged In: YES
    user_id=34881

    Later it was decided to change this so that diff_angle of
    two zero vectors gives zero. Strictly speaking it should
    perhaps be NaN, but it is already the case that norm of a
    zero vector gives zero rather than NaN, so there is a precedent.