コード例 #1
0
 /// <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();
 }
コード例 #2
0
 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");
     }
 }
コード例 #3
0
 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");
     }
 }