Computes the angle of a two-dimensional vector. i0 is the y-coordinate of the vector and i1 is the x-coordinate of the vector. The resulting signal o will be the angle of the given vector counterclockwise from the x-axis in radians and in the interval [-pi,+pi]. Notice that the length of the vector must be greater than 0, or a math error will occur.
Primitive\Trigonometric\Arctan2
Name | Type | Description |
---|---|---|
i0 | real | Y-coordinate of the vector to calculate the angle of. |
i1 | real | X-coordinate of the vector to calculate the angle of. |
Name | Type | Description |
---|---|---|
o | real | The angle of the given vector in radians in the interval [-pi,+pi]. |