length_squared node

Returns a scalar field whose values are the length of the value of the input vector field at any position. This is faster than length because it avoids a costly square root computation. It can be used to compare lengths when you are only concerned with which of two vectors is longer, and not what their actual lengths are.

Inputs

vector [in]

The input vector field.

Outputs

length_squared [out]

The resulting field.