Esempio n. 1
0
 public void Flatten(Ellipse e)
 {
     e.R1 /= 2;
     e.R2 *= 2;
 }
Esempio n. 2
0
        public void Func1()
        {
            Circle c = new Circle(new PointF(3.0f, 0), 5.0f);
            ComputeArea(c);
            Flatten(c);

            Circle c2 = new Circle(new PointF(3.0f, 0), 5.0f);
            Flatten(new Ellipse(c2));

            Circle c3 = new Circle(new PointF(3.0f, 0), 5.0f);
            Ellipse e = new Ellipse(c3);
            Flatten(new Ellipse(c3));
        }
Esempio n. 3
0
 public double ComputeArea(Ellipse e)
 {
     // e넓이 구하기
     return 3;
 }