atan3 {servosphereR} | R Documentation |
Calculate angle between a vector and y-axis
Description
Calculate the angle between a vector and y-axis, not the x-axis as in atan2
Usage
atan3(x, y)
Arguments
x |
The x coordinate from the (x, y) locations. |
y |
The y coordinate from the (x, y) location for an organism. |
Details
This is a helper function. It is called in another function but is otherwise not "outward facing".
This function calculates the angle between a vector and the y-axis. The base function atan2 calculates the angle between a vector and the x-axis, which is not desirable in this case.
If the data will be aggregated, it is recommended to aggregate the data before running this function.
[Package servosphereR version 0.1.1 Index]