class myClass{ constructor(var1, var2, var3){ this.var1 this.var2 this.var3 } myMethod() { fill(255, 255, 255); ellipse(this.x, this.y, this.radius); } anotherMethod() { if (mouseX < this.x + this.radius || mouseX > this.x - this.radius && mouseY < this.y + this.radius || mouseY > this.y - this.radius) { print("mouse is in"); } } }