コード例 #1
0
 public bool Equals(LatLngQuad other)
 {
     return(TopLeft.Equals(other.TopLeft) &&
            TopRight.Equals(other.TopRight) &&
            BottomLeft.Equals(other.BottomLeft) &&
            BottomRight.Equals(other.BottomRight));
 }
コード例 #2
0
 public bool Equals(GeoBoundingBox other)
 {
     if (other == null)
     {
         throw new ArgumentNullException(nameof(other));
     }
     return(TopLeft.Equals(other.TopLeft) && BottomRight.Equals(other.BottomRight));
 }
コード例 #3
0
ファイル: Obj16Tile.cs プロジェクト: Maseya/Brutario
 public bool Equals(Obj16Tile other)
 {
     return
         (TopLeft.Equals(other.TopLeft) &&
          TopRight.Equals(other.TopRight) &&
          BottomLeft.Equals(other.BottomLeft) &&
          BottomRight.Equals(other.BottomRight));
 }
コード例 #4
0
        public override bool Equals(object obj)
        {
            Rectangle other = obj as Rectangle;

            if (other == null)
            {
                return(false);
            }

            return(TopLeft.Equals(other.TopLeft) && BottomRight.Equals(other.BottomRight));
        }
コード例 #5
0
ファイル: PdfRectangle.cs プロジェクト: vipyami/PdfPig
 /// <summary>
 /// -π ≤ θ ≤ π
 /// </summary>
 private double GetT()
 {
     if (!BottomRight.Equals(BottomLeft))
     {
         return(Math.Atan2(BottomRight.Y - BottomLeft.Y, BottomRight.X - BottomLeft.X));
     }
     else
     {
         // handle the case where both bottom points are identical
         return(Math.Atan2(TopLeft.Y - BottomLeft.Y, TopLeft.X - BottomLeft.X) - Math.PI / 2);
     }
 }
コード例 #6
0
 public bool Equals(FourCorners <TValue> other)
 {
     if (this == other)
     {
         return(true);
     }
     if (other == null)
     {
         return(false);
     }
     return(BottomLeft.Equals(other.BottomLeft) && BottomRight.Equals(other.BottomRight) &&
            TopLeft.Equals(other.TopLeft) && TopRight.Equals(other.TopRight));
 }
コード例 #7
0
 protected bool Equals(Range other)
 {
     return(List == other.List && UpperLeft.Equals(other.UpperLeft) && BottomRight.Equals(other.BottomRight));
 }
コード例 #8
0
 bool Equals(CornerRadius other)
 {
     return(TopLeft.Equals(other.TopLeft) && TopRight.Equals(other.TopRight) && BottomRight.Equals(other.BottomRight) && BottomLeft.Equals(other.BottomLeft));
 }