Atan2 (LogiX node)
Jump to navigation
Jump to search
Atan2 | ||
---|---|---|
Inputs | ||
Float | Y | |
Float | X | |
Outputs | ||
Float | * |
The Atan2 node takes inputs Y, and X, and outputs the result of the 2 input arctangent function.
Usage
When spawned from the node browser, this node accepts float data by default. However, this node can be overloaded to accept a wide variety of numeric datatypes if an appropriate wire is connected to the input. The datatype must support decimal places due to the nature of the function.
Atan2 can be used to calculate the radians that a direction is from the positive x axis on a 2d plane. Put simply, it tells you how far around a circle the point at [x, y] is.