Difference between revisions of "Normalized (LogiX node)"
Jump to navigation
Jump to search
(Remove stub category) |
|||
Line 23: | Line 23: | ||
[[Category:LogiX{{#translation:}}|Normalized Float2]] | [[Category:LogiX{{#translation:}}|Normalized Float2]] | ||
[[Category:LogiX:Operators{{#translation:}}|Normalized Float2]] | [[Category:LogiX:Operators{{#translation:}}|Normalized Float2]] | ||
− | {{:NodeMenu-Operators | + | {{:NodeMenu-Operators}} |
Latest revision as of 03:21, 20 February 2022
Normalized | ||
---|---|---|
Inputs | ||
Float2 | A | |
Outputs | ||
Float2 | * |
The Normalized node outputs a normalized version of the input vector. A normalized vector is a vector that has been divided by its magnitude such that the new vector has a magnitude of 1. Mathematically, this is equal to the input vector divided by the square root of the dot product of the input vector with itself.
Usage
When spawned from the node browser, this node accepts the float2 datatype by default. However, this node can be overloaded to accept different numeric value types if an appropriate wire is connected to an input.
Examples
Passing the vector [2, 2] as an input into the Normalized node would return the vector [1/sqrt(2), 1/sqrt(2)].