spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Maths functions and properties

Tan

float Maths.Tan(float radians)
Calculates the tangent of the specified angle (in radians).

To convert an angle in degrees to radians, use Maths.DegreesToRadians.

Example:

float tan = Maths.Tan(Maths.DegreesToRadians(45.0));
calculates the tan of 45 degrees (which is 1.0) and places it into variable tan.

See Also: Maths.ArcTan, Maths.DegreesToRadians, Maths.Cos, Maths.Sin,


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.