Esempio n. 1
0
 public override bool Equals(object other)
 {
     if (other == null)
     {
         return(false);
     }
     else if (other is ScreenPoint)
     {
         return(Equals((ScreenPoint)other));
     }
     else if (other is Vector2)
     {
         return(Relative.Equals((Vector2)other));
     }
     else if (other is Point)
     {
         return(Absolute.Equals((Point)other));
     }
     else if ((other = other as string) != null)
     {
         return(ToString().Equals(other));
     }
     else
     {
         return(false);
     }
 }