/// <summary> /// Returns the common points that this object has in common with a given one. /// </summary> /// <param name="other">The given object.</param> /// <returns>A lazy enumerable of common points.</returns> public IEnumerable <PointObject> CommonPointsWith(DefinableByPoints other) => Points.Intersect(other.Points);
/// <summary> /// Initializes a new instance of the <see cref="InconsistentIncidenceException"/> class. /// </summary> /// <param name="point">The point whose incidence wasn't determined consistently.</param> /// <param name="geometricLineOrCircle">The geometric line or circle where the point doesn't lie consistently.</param> public InconsistentIncidenceException(PointObject point, DefinableByPoints geometricLineOrCircle) { Point = point ?? throw new ArgumentNullException(nameof(point)); GeometricLineOrCircle = geometricLineOrCircle ?? throw new ArgumentNullException(nameof(geometricLineOrCircle)); }