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

PVector()

This constructor creates a new PVector with the default values of 0.0 for x, y, and z.

Example

PVector v = PVector();
/*
v.x == 0.0
v.y == 0.0
v.z == 0.0
*/