Class

Shader

Output

Float

Synopsis

Return the length of the input vector, with three possible distance definitions:


input
...
mode
euclidian 

The "ordinary" length of the vector: 

\( \sqrt{x^2+y^2+z^2} \)

quadrance 

Euclidian distance squared, which is cheaper to compute: 

\( x^2+y^2+z^2 \)

manhattan 

Measures distance following only axis-aligned directions, which is even cheaper to compute: 

\( \left|x\right|+\left|y\right|+\left|z\right| \)


  • No labels
Privacy settings / Do not sell my personal information / Privacy/Cookies