note 68670 added to function.acos
| From: | zoltan dot szentesi at nokia dot com | Date: | Sun, 06 Aug 2006 10:29:46 +0000 |
| Subject: | note 68670 added to function.acos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115582@lists.php.net to get a copy of this message | ||
Wondering what is the use of 'acos' function?
It is essential in games, animations and drawings to determine the location of two objects relating
to each other.
To the point: the angle of two vectors is calculated by
v1X*v2X + v1Y*v2Y
acos(--------------------------)=angle between two vectors.
|v1| * |v2|
|v1| and |v2| are the length of the vectors and calculated using Pithagoras-formula:
|v1|=sqrt(v1X*v1X + v1Y*v1Y)
This helped me to calculate and share given space for 'n' amount of objects so that they
don't overlap.
Enjoy! :-)
----
Server IP: 80.81.171.181
Probable Submitter: 88.112.11.60
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.acos.php
Edit -- https://master.php.net/note/edit/68670
Del: integrated -- https://master.php.net/note/delete/68670/integrated
Del: useless -- https://master.php.net/note/delete/68670/useless
Del: bad code -- https://master.php.net/note/delete/68670/bad+code
Del: spam -- https://master.php.net/note/delete/68670/spam
Del: non-english -- https://master.php.net/note/delete/68670/non-english
Del: in docs -- https://master.php.net/note/delete/68670/in+docs
Del: other reasons-- https://master.php.net/note/delete/68670
Reject -- https://master.php.net/note/reject/68670
Search -- https://master.php.net/manage/user-notes.php