PVector constructor

PVector(
  1. double x,
  2. double y, [
  3. double z = 0.0
])

Implementation

PVector(double x, double y, [double z = 0.0]) {
  this.x = x;
  this.y = y;
  this.z = z;
}