예제 #1
0
        public virtual 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 virtual 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;
		}
예제 #3
0
		public bool Equals(LTouchLocation other) {
			return (id == other.id)
					&& (this.GetPosition().Equals(other.GetPosition()))
					&& (this.previousPosition.Equals(other.previousPosition));
		}
예제 #4
0
 public bool Equals(LTouchLocation other)
 {
     return((id == other.id) &&
            (this.GetPosition().Equals(other.GetPosition())) &&
            (this.previousPosition.Equals(other.previousPosition)));
 }