Added See Also section. Reworded the description. |
Fixed node visual. Removed link (No equivalent function for C# & Microsoft exists normally, and MathX is the only math library that has access to the correct function). |
||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | {{#Invoke:ProtoFlux|GenerateUI | ||
|Name=°<br><p style="font-size:25%;">(angle) | |Name=°<br><p style="font-size:25%;">(angle) | ||
|Category= | |Category=Vectors | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
Line 35: | Line 35: | ||
== See Also == | == See Also == | ||
* Wikipedia's definition of an [https://en.wikipedia.org/wiki/Angle angle]. | * Wikipedia's definition of an [https://en.wikipedia.org/wiki/Angle angle]. | ||
[[Category:ProtoFlux:Operators:Vectors]] | [[Category:ProtoFlux:Operators:Vectors]] |
Latest revision as of 18:49, 28 June 2024
°
(angle)
Vectors
The Angle node takes in 2 vectors (rays or directions) and returns the difference between the 2 provided vectors using angles in degrees as a float.
The vectors you provide are normalized (but not clamped), which means each value will be between -1
and 1
, with resulting degrees of 0
(if the 2 vectors are so close to each other that there is effectively no separation, thus no angle) all the way to 180
(if the 2 vectors are so far apart that they are a straight line) respectively.
Inputs
A (Pseudo-Generic)
The first provided vector.
B (Pseudo-Generic)
The second provided vector.
Outputs
* (float)
Returns the difference between the 2 provided vectors using angles in degrees.
See Also
- Wikipedia's definition of an angle.