Пример #1
0
  @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;
  }
Пример #2
0
 public boolean equals(LTouchLocation other) {
   return (id == other.id)
       && (this.getPosition().equals(other.getPosition()))
       && (this.previousPosition.equals(other.previousPosition));
 }