/// <summary> /// Calls <see cref="Visit"/> /// </summary> /// <param name="circularString"></param> /// <param name="ordinates"></param> internal ArcVisitor(CircularString circularString, Action <Arc> onVisitArc, GrowableOrdinateArray ordinates = null) : this(onVisitArc, ordinates ?? new GrowableOrdinateArray()) { tolerance = circularString.tolerance; Factory = circularString.Factory; controlPoints = circularString.controlPoints; Visit(); }
public CircularRing(System.Numerics.Vector4[] controlPoints, GeometryFactory factory, double tolerance) : base(FakeRing2d, factory) { curved = new CircularString(controlPoints, factory, tolerance); if (!curved.IsClosed) { throw new System.ArgumentException("Start and end point are not matching, this is not a ring"); } }
public CircularRing(CoordinateSequence points, GeometryFactory factory, double tolerance) : base(FakeRing2d, factory) { curved = new CircularString(points, factory, tolerance); if (!curved.IsClosed) { throw new System.ArgumentException("Start and end point are not matching, this is not a ring"); } }