This site Web
Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us

Sunlit Design > The Sun API > Documentation > sdCos Function


Index


- Introduction
+ Using the Functions
+ User Guide
+ Function Reference
+ Constants

Contact Developer

Downloads

sdCos Function

Description

Returns the cosine of the given Angle

Syntax

sdCos(Angle)

Angle    is the angle in degrees for which you want the cosine. 

Return Values

sdCos returns a double precision number.

Remarks

This degree based function is provided because most programming environments provide only radian based functions.

Example

 To find the cosine of 45 degrees
    sdCos(45)equals 0.707106781186548...