@Override public LTouchLocation clone() { LTouchLocation varCopy = new LTouchLocation(); varCopy.id = this.id; varCopy.position.set(this.position); varCopy.previousPosition.set(this.previousPosition); varCopy.state = this.state; varCopy.previousState = this.previousState; varCopy.pressure = this.pressure; varCopy.previousPressure = this.previousPressure; return varCopy; }
public boolean equals(LTouchLocation other) { return (id == other.id) && (this.getPosition().equals(other.getPosition())) && (this.previousPosition.equals(other.previousPosition)); }