Ejemplo n.º 1
0
        public LTouchLocation Cpy()
        {
            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);
        }
Ejemplo n.º 2
0
 public bool Equals(LTouchLocation other)
 {
     return((id == other.id) &&
            (this.GetPosition().Equals(other.GetPosition())) &&
            (this.previousPosition.Equals(other.previousPosition)));
 }