Пример #1
0
        public MarkGeometryPath(MarkGeometryArc arc)
            : base()
        {
            Points.AddRange((MarkGeometryPoint[])arc);
            CentrePoint = arc.CentrePoint;
            Fill        = arc.Fill;
            Stroke      = arc.Stroke;

            Update();
        }
Пример #2
0
        public MarkGeometryPath(MarkGeometryArc arc, double minimumFacetLength)
            : base()
        {
            int nSegments = (int)Math.Floor(GeometricArithmeticModule.CalculatePerimeter(arc) / minimumFacetLength);

            Points.AddRange((MarkGeometryPoint[])arc);
            CentrePoint = arc.CentrePoint;
            Fill        = arc.Fill;
            Stroke      = arc.Stroke;

            Update();
        }
Пример #3
0
        internal MarkGeometryArc(MarkGeometryArc input)
            : base(input)
        {
            Radius     = input.Radius + 0;
            StartAngle = input.StartAngle + 0;
            EndAngle   = input.EndAngle + 0;

            CentrePoint = (MarkGeometryPoint)input.CentrePoint.Clone();
            StartPoint  = (MarkGeometryPoint)input.StartPoint.Clone();
            EndPoint    = (MarkGeometryPoint)input.EndPoint.Clone();
            VertexCount = input.VertexCount + 0;

            Update();
        }
Пример #4
0
 public void Add(MarkGeometryArc arc)
 {
     Arcs.Add(arc);
     Update();
 }