コード例 #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);
        }
コード例 #2
0
 public bool Equals(LTouchLocation other)
 {
     return((id == other.id) &&
            (this.GetPosition().Equals(other.GetPosition())) &&
            (this.previousPosition.Equals(other.previousPosition)));
 }