Menu Path : Operator > Math > Vector
The Squared Length uniform Operator calculates the square of the length of a 1D, 2D, or 3D vector.
| Input | Type | Description |
|---|---|---|
| X | Configurable | The vector to calculate the squared length of. |
| Output | Type | Description |
|---|---|---|
| Output | float | The squared length of the input vector. |
To view this uniform Operator's configuration, click the cog icon in the Node's header. Here you can configure the data type this Operator uses.
You can use the following types for your Input values and ports:
- Position
- Vector
- Vector3
- Vector2
- Float