Example #1
0
 /// <summary>
 /// データが一致しているか
 /// </summary>
 /// <param name="source">比較元</param>
 /// <returns>trueならデータが一致している</returns>
 public bool Equals(TouchInfo source)
 {
     if ((touchId == source.touchId) &&
         (position.x == source.position.x) &&
         (position.y == source.position.y) &&
         (position.z == source.position.z) &&
         (status == source.status))
     {
         return(true);
     }
     return(false);
 }
Example #2
0
 /// <summary>
 /// コピー
 /// </summary>
 /// <param name="source">コピー元</param>
 public void Copy(TouchInfo source)
 {
     touchId  = source.touchId;
     position = source.position;
     status   = source.status;
 }