mult method

PVector mult(
  1. double n
)

( begin auto-generated from PVector_mult.xml )

Multiplies a vector by a scalar or multiplies one vector by another.

( end auto-generated )

@webref pvector:method @usage web_application @brief Multiply a vector by a scalar @param n the number to multiply with the vector

Implementation

PVector mult(double n) {
  x *= n;
  y *= n;
  z *= n;
  return this;
}