Filled in this node page. |
Added See Also section. Reworded the description. |
||
Line 13: | Line 13: | ||
|}} | |}} | ||
The '''Angle''' node takes in 2 vectors and returns the difference between the 2 provided vectors using angles in degrees. The vectors you provide are normalized (but not clamped), which means each value will be between <code>-1</code> and <code>1</code> | 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 [[Type:float|float]]. | ||
The vectors you provide are normalized (but not clamped), which means each value will be between <code>-1</code> and <code>1</code>, with resulting degrees of <code>0</code> (if the 2 vectors are so close to each other that there is effectively no separation, thus no angle) all the way to <code>180</code> (if the 2 vectors are so far apart that they are a straight line) respectively. | |||
== Inputs == | == Inputs == | ||
Line 30: | Line 32: | ||
Returns the difference between the 2 provided vectors using angles in degrees. | Returns the difference between the 2 provided vectors using angles in degrees. | ||
== See Also == | |||
* Wikipedia's definition of an [https://en.wikipedia.org/wiki/Angle angle]. | |||
* Microsoft's documentation on the [https://learn.microsoft.com/en-us/dotnet/api/system.windows.vector.anglebetween?view=windowsdesktop-8.0 Vector.AngleBetween(Vector, Vector)] Method. | |||
[[Category:ProtoFlux:Operators:Vectors]] | [[Category:ProtoFlux:Operators:Vectors]] |
Revision as of 12:04, 28 June 2024
°
(angle)
Operators
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.
- Microsoft's documentation on the Vector.AngleBetween(Vector, Vector) Method.