div method

PVector div(
  1. double n
)

( begin auto-generated from PVector_div.xml )

Divides a vector by a scalar or divides one vector by another.

( end auto-generated )

@webref pvector:method @usage web_application @brief Divide a vector by a scalar @param n the number by which to divide the vector

Implementation

PVector div(double n) {
  x /= n;
  y /= n;
  z /= n;
  return this;
}