Skip to content

darctan2

Vašek edited this page Jan 14, 2019 · 5 revisions

darctan2

Calculate the inverse tangent and returns an angle in degrees

Syntax:

darctan2(x, y)
Argument Description
double x Opposite side of triangle
double y Adjacent side of triangle

Returns: double

Description:

This function returns the inverse tangent of y/x in degrees, where y is the opposite side of triangle and x is the adjacent side of triangle. If you want to return radians instead of degrees use function arctan2().

Example:

double value;
value = darctan2(1, -1);

This code set value to 2.356195.

Example 2:

double value;
value = darctan2(1, 0);

This code set value to 1.570797.

Back to number_functions

Clone this wiki locally