public TriCircle(GeoTriangle Triangle) { this.Triangle = Triangle; this.Circle = new GeoCircle(Triangle.P1, Triangle.P2, Triangle.P3); this.Neighbors = new List <TriCircle>(); }
/// <summary> /// Compares two circles for equality. /// </summary> /// <param name="ICircle">A circle to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public Boolean Equals(GeoCircle Circle) { if ((Object)Circle == null) { return(false); } return(this.Center.Equals(Circle.Center) && this.Radius.Equals(Circle.Radius)); }
/// <summary> /// Checks if the given circle shares some /// area with this circle. /// </summary> /// <param name="Circle">A circle of type T.</param> /// <returns>True if the circle shares some area with this circle; False otherwise.</returns> public Boolean Overlaps(GeoCircle Circle) { #region Initial Checks if (Circle == null) { throw new ArgumentNullException("The given circle must not be null!"); } #endregion if (Center.DistanceTo(Circle.Center) <= Radius + Circle.Radius) { return(true); } return(true); }
/// <summary> /// Checks if the given circle shares some /// area with this circle. /// </summary> /// <param name="Circle">A circle of type T.</param> /// <returns>True if the circle shares some area with this circle; False otherwise.</returns> public Boolean Overlaps(GeoCircle Circle) { #region Initial Checks if (Circle == null) throw new ArgumentNullException("The given circle must not be null!"); #endregion if (Center.DistanceTo(Circle.Center) <= Radius + Circle.Radius) return true; return true; }
/// <summary> /// Compares two circles for equality. /// </summary> /// <param name="ICircle">A circle to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public Boolean Equals(GeoCircle Circle) { if ((Object) Circle == null) return false; return this.Center.Equals(Circle.Center) && this.Radius.Equals(Circle.Radius); }
public TriCircle(GeoTriangle Triangle) { this.Triangle = Triangle; this.Circle = new GeoCircle(Triangle.P1, Triangle.P2, Triangle.P3); this.Neighbors = new List<TriCircle>(); }
public TriCircle(GeoTriangle Triangle, GeoCircle Circle) { this.Triangle = Triangle; this.Circle = Circle; this.Neighbors = new List<TriCircle>(); }
public TriCircle(GeoTriangle Triangle, GeoCircle Circle) { this.Triangle = Triangle; this.Circle = Circle; this.Neighbors = new List <TriCircle>(); }