Exemple #1
0
        public static CircleByEquation CreateCircleByEquation(Drawing drawing, string centerX, string centerY, string radius)
        {
            var circle = new CircleByEquation {
                Drawing = drawing
            };

            circle.X = new DrawingExpression(circle, "Center X =", centerX);
            circle.Y = new DrawingExpression(circle, "Center Y =", centerY);
            circle.R = new DrawingExpression(circle, "Radius =", radius);
            circle.X.Recalculate();
            circle.Y.Recalculate();
            circle.R.Recalculate();
            return(circle);
        }
Exemple #2
0
 public static CircleByEquation CreateCircleByEquation(Drawing drawing, string centerX, string centerY, string radius)
 {
     var circle = new CircleByEquation { Drawing = drawing };
     circle.X = new DrawingExpression(circle, "Center X =", centerX);
     circle.Y = new DrawingExpression(circle, "Center Y =", centerY);
     circle.R = new DrawingExpression(circle, "Radius =", radius);
     circle.X.Recalculate();
     circle.Y.Recalculate();
     circle.R.Recalculate();
     return circle;
 }