ThingViewDot


Returns the cosine of the angle between the look_thing's lookvector and a lookvector looking directly at the see_thing. Syntax:

dot=ThingViewDot(look_thing, see_thing);


Here's a picture:

The gray lines around the look_thing that extend to the gray circle indicate the direction that the look_thing is looking in. Notice that this simple picture parallels the cosine chart in the Vector Section's notes (remember that the look_thing-to-see_thing lvec should be placed on the +x of the cosine graph).