LSL Wiki Mirror 7-7-7 : llAcos

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
float llAcos(float val)

Returns the arccosine or inverse cosine in radians of val.

Basically, it is the inverse of cosine (llCos), just as as division is the inverse of multiplication.

Example:
float cosine_return;
float arccosine_return;

cosine_return = llCos( 1 );
arccosine_return = llAcos( cosine_return );

llOwnerSay( "cosine_return = llCos( 1 ) == " + (string)cosine_return );
llOwnerSay( "arccosine_return = llACos( cosine_return ) == " + (string)arccosine_return );

This would result in the following:
cosine_return = llCos( 1 ) == 0.540302
arccosine_return = llACos( cosine_return ) == 1.000000


Compare with llCos.


Functions | Math
There is no comment on this page. [Display comments/form]