-
-
Notifications
You must be signed in to change notification settings - Fork 18
darctan2
Vašek edited this page Jan 14, 2019
·
5 revisions
Calculate the inverse tangent and returns an angle in degrees
darctan2(x, y)
Argument | Description |
---|---|
double x |
Opposite side of triangle |
double y |
Adjacent side of triangle |
Returns: double
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()
.
double value;
value = darctan2(1, -1);
This code set value
to 2.356195.
double value;
value = darctan2(1, 0);
This code set value
to 1.570797.
Back to number_functions