double distXZ()
Gets the 2D Euclidian distance between the current vector and the origin (0, 0) in the XZ plane.
Returns
A double representing the Euclidian distance between the current vector and the origin
Example
PVector v = PVector(3, 0, 4);
v.distXZ(); // Returns 5
See Also