PVector& rotateXZ(double angle)
Rotates the vector by the specified angle in the XZ plane. The Y value is not affected. This function modifies the vector.
Parameters
angle- the angle to rotate by, specified in radians
Returns
A reference to the vector.
Example
PVector v = new PVector(0, 0, 1);
v.rotateXZ(90);
// v is now (1, 0, 0)
v.rotateXZ(90);
// v is now (0, 0, -1)