Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: acos - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

acosh" width="11" height="7"/> <abs
Last updated: Thu, 03 May 2007

view this page in

acos

(PHP 4, PHP 5)

acos — 逆余弦(アークコサイン)

説明

float acos ( float $arg )

arg のアークコサインをラジアンで返します。 acos()cos() の逆関数で、 acos() がとりうる範囲内のすべての a について a==cos(acos(a)) が成立します。

パラメータ

arg

処理する角度。

返り値

arg のアークコサインをラジアンで返します。

参考

cos()
acosh()
asin()
atan()



add a note add a note User Contributed Notes
acos
zoltan dot szentesi at nokia dot com
06-Aug-2006 07:29
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! :-)

acosh" width="11" height="7"/> <abs
Last updated: Thu, 03 May 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites