public bool Equals(LatLngQuad other) { return(TopLeft.Equals(other.TopLeft) && TopRight.Equals(other.TopRight) && BottomLeft.Equals(other.BottomLeft) && BottomRight.Equals(other.BottomRight)); }
public bool Equals(GeoBoundingBox other) { if (other == null) { throw new ArgumentNullException(nameof(other)); } return(TopLeft.Equals(other.TopLeft) && BottomRight.Equals(other.BottomRight)); }
public bool Equals(Obj16Tile other) { return (TopLeft.Equals(other.TopLeft) && TopRight.Equals(other.TopRight) && BottomLeft.Equals(other.BottomLeft) && BottomRight.Equals(other.BottomRight)); }
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)); }
/// <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); } }
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)); }
protected bool Equals(Range other) { return(List == other.List && UpperLeft.Equals(other.UpperLeft) && BottomRight.Equals(other.BottomRight)); }
bool Equals(CornerRadius other) { return(TopLeft.Equals(other.TopLeft) && TopRight.Equals(other.TopRight) && BottomRight.Equals(other.BottomRight) && BottomLeft.Equals(other.BottomLeft)); }