class MVertex { float ox, oy; float dx, dy; float x,y; MVertex(float x, float y){ this.ox = x; this.oy = y; this.x = x; this.y = y; this.dx = x; this.dy = y; } void move(PVector displace,float f){ dx += f*displace.x; dy += f*displace.y; } void shift(float distort){ x = dx*distort + ox*(1-distort); y = dy*distort + oy*(1-distort); } }