Skip to main content Link Menu Expand (external link) Document Search Copy Copied

double distYZ()

Gets the 2D Euclidian distance between the current vector and the origin (0, 0) in the YZ plane.

Returns

A double representing the Euclidian distance between the current vector and the origin

Explanation

See dist2D(PVector) for a detailed explanation.

Example

PVector v = PVector(0, 3, 4);
v.distYZ(); // Returns 5

See Also