Ejemplo n.º 1
0
 public string Translate(string apple)
 {
     if (translator == 1)
     {
         var text = TransG.TranslateLiteAsync(apple, Language.Auto, Language.English).GetAwaiter().GetResult();
         return(text.MergedTranslation);
     }
     else
     {
         var text = TransY.Translate(apple, "en");
         return(text.Text[0]);
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hashCode = -62375069;

            hashCode = hashCode * -1521134295 + ScaleX.GetHashCode();
            hashCode = hashCode * -1521134295 + SkewX.GetHashCode();
            hashCode = hashCode * -1521134295 + TransX.GetHashCode();
            hashCode = hashCode * -1521134295 + SkewY.GetHashCode();
            hashCode = hashCode * -1521134295 + ScaleY.GetHashCode();
            hashCode = hashCode * -1521134295 + TransY.GetHashCode();
            hashCode = hashCode * -1521134295 + Persp0.GetHashCode();
            hashCode = hashCode * -1521134295 + Persp1.GetHashCode();
            hashCode = hashCode * -1521134295 + Persp2.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 3
0
 public bool Equals(Matrix2D other)
 {
     if (other == null)
     {
         return(false);
     }
     return(ScaleX.Equals(other.ScaleX) &&
            SkewX.Equals(other.SkewX) &&
            TransX.Equals(other.TransX) &&
            SkewY.Equals(other.SkewY) &&
            ScaleY.Equals(other.ScaleY) &&
            TransY.Equals(other.TransY) &&
            Persp0.Equals(other.Persp0) &&
            Persp1.Equals(other.Persp1) &&
            Persp2.Equals(other.Persp2));
 }