[Pharo-users] Calculate angle between two vectors (probably @Igor :)

MartinW wm at fastmail.fm
Wed Mar 19 11:24:10 EDT 2014

Nicolai Hess wrote
> in testIsInFieldOfVision
> subject has velocity 100 at 0, I understand this as "moves from left to
> right".
> testobject other2 and other3 are above and below subect, and not behind
> and
> in front, both should be visible with the fieldOfView.

Oh, thank you. I made a new testcase. Which is unfortunately passing :( So i
am still looking for a solution…

Nicolai Hess wrote
> Btw. the field of view is rather big, 0.75*Float Pi is 135 degree, but
> clock *and* counterclockwise
> ->  270 degree field of view.

That's correct. Most birds have the eyes on the sides of their heads - thus
they have a wide visual field. Some as wide as 360 degrees.

View this message in context: http://forum.world.st/Calculate-angle-between-two-vectors-probably-Igor-tp4749351p4749824.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

More information about the Pharo-users mailing list