Pmag
processingCalculates the magnitude (or length) of a vector. A vector is a direction in space commonly used in computer graphics and linear algebra. Because it has no "start" position, the magnitude of a vector can be thought of as the distance from the coordinate 0,0 to its x,y value. Therefore, Pmag
is a shortcut for writing 0 0 x y Pdist. It is exactly the same as warpscript function HYPOT
.
3D is not yet supported.