FOVE SUPPORT CENTER

Comments

3 comments

  • Avatar
    jeremy

    Hey Snehal,

    What angle exactly are you looking for? Can you perhaps draw a diagram for us?

    "eye angle" can mean a lot of things you see..

  • Avatar
    Snehal Prajapati

    I am attaching a very informal drawing here. The aim is to find the angle Theta in the drawing.

  • Avatar
    Team FOVE

    Hey Snehal,

    Assuming you know the two vectors v1 and v2 pointing towards their respective target, the dot product between v1 and v2 will yield v1・v2 = |v1| |v2| cos(theta), where |v| is the norm of the vector v.
    If you normalize v1 and v2 such that |v1| = 1 and |v2| = 1, theta will be such that theta = acos(v1・v2).

    Please let me know if this helps.

    Cheers,
    Kevin
    Team FOVE

Please sign in to leave a comment.