To Degrees (math/radiansToDegrees/float)
The To Degrees node converts an angle measured in radians to its equivalent value in degrees. This is a common operation when working with angles in mathematical or graphical contexts.Inputs
a(float, default: 0): The angle in radians to be converted to degrees.
Outputs
result(float): The equivalent angle in degrees.
Configuration
This node has no configuration options.Usage
To use the To Degrees node:- Add the To Degrees node to your spell.
- Connect the angle in radians you want to convert to the
ainput. - The equivalent angle in degrees will be output from the
resultoutput.
Example
Here’s an example of how to use the To Degrees node in a spell:Best Practices
- Remember that this node expects the input angle to be in radians. If your angle is in degrees, you’ll need to convert it to radians first using the To Radians node.
- The conversion from radians to degrees is an exact operation, so there’s no loss of precision.
Common Issues
- Forgetting to convert degrees to radians before using this node is a common mistake. Always double-check your angle units.
- If the result seems incorrect, verify that your input is actually in radians.
