xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

ATn2()

Calculates the radians of an angle from sine and cosine.

Syntax

Atn2( <nSine> , <nCosine> ) --> nRadians

Arguments

<nSine>
A numeric value specifying the angle sine value in radians.
<nCosine>
A numeric value specifying the angle cosine value in radians.

Return

The function returns the angle sine in radians as a numeric value between plus/minus Pi().

Description

ATn2() accepts sine and cosine values of a given point in radians and calculates from it the angle sine in radians. This is equivalent to ATn2(x/y), where division by zero errors are taken care of.

Info

See also:ACos(), ASin(), ATan(), DtoR(), RtoD(), SetPrec(), Sin(), Tan()
Category: CT:Math , Mathematical functions , Trigonometric functions
Source:ct\trig.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe