calculateRemainder2D = function calculateRemainder2D(xComponent, yComponent) {
            if (xComponent !== 0) {
              this.x = this.x % xComponent;
            }
            if (yComponent !== 0) {
              this.y = this.y % yComponent;
            }
            return this;
          }
@method rem
@param {p5.Vector | Number[]}  value  divisor vector
@chainable