Undefined parameters for collidePointPoint #1

Closed
rickixie opened this Issue Feb 20, 2016 · 1 comment

Projects

None yet

2 participants

@rickixie

Just a small note, on line 382

p5.prototype.collidePointPoint = function (x,y,x2,y2, buffer) {
    if(buffer == undefined){
      buffer = 0;
    }

    if(dist(x,y,z,x2) <= buffer){//I think this should be (x,y,x2,y2)?
      return true;
    }

  return false;
};
@bmoren
Owner
bmoren commented Feb 21, 2016

thanks for this catch, was a mistake from converting point/point to 2d from an earlier 3d version I had, fixing now.

@bmoren bmoren closed this in b0ddd12 Feb 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment