public Cylinder(Circle a)
 {
     Center.x = a.Center.x;
     Center.y = a.Center.y;
     radius = a.radius;
     hight = 1;
 }
 public Cylinder(Circle a)
 {
     _circle._Center.x = a._Center.x ;
     _circle._Center.y = a._Center.y;
     _circle.Radius = a.Radius;
     _Height = 1;
 }
 public Cylinder(Circle c)
 {
     X = c.X;
     Y = c.Y;
     Radius = c.Radius;
     Height = 1;
 }
 public Cylinder(Circle a)
 {
     _surface._center.X = a._center.X;
     _surface._center.Y = a._center.Y;
     _surface.Radius = a.Radius;
     Height = 1.0;
 }
 public Cylinder(Circle c)
 {
     x = c.x;
     y = c.y;
     radius = c.radius;
     height = 1.0;
 }
 public Cylinder(Circle a)
 {
     height = 1.00;
     radius = a.radius;
     x = a.x;
     y = a.y;
 }
 public Cylinder(Circle cpy)
 {
     _x = cpy.X;
     _y = cpy.Y;
     _height = 1.0;
     _radius = cpy.Radius;
 }
 public Cylinder(Circle cir)
 {
     x = cir.x;
     y = cir.y;
     Radius = cir.Radius;
     height = 1;
 }
Beispiel #9
0
 public Cylinder(Circle a)
 {
     x = a.x;
     y = a.y;
     radius = a.radius;
     height = 1;
 }
Beispiel #10
0
 public Cylinder(Circle a)
 {
     X = a.X;
     Y = a.Y;
     R = a.R;
     H = 1;
 }
Beispiel #11
0
 public Cylinder(Circle a)
 {
     Height = 1;
     Radius = a.Radius;
     x = a.x;
     y = a.y;
 }
Beispiel #12
0
 public Cylinder(Circle a)
 {
     Base.Center.X = a.Center.X;
     Base.Center.Y = a.Center.Y;
     Base.Radius = a.Radius;
     Height = 1.0;
 }
Beispiel #13
0
 public Cylinder(Circle C)
 {
     x = C.x;
     y = C.y;
     Radius = C.Radius;
     Height = 1.0 ;
 }
Beispiel #14
0
 public Circle(Circle c)
 {
     Radius = c.Radius;
     /*center.X = c.X;
     center.Y = c.Y;*/
     center = new Point(c.center.X, c.center.Y);
 }
Beispiel #15
0
        public static void Main(string[] args)
        {
            Circle c1 = new Circle ();
            Circle c2 = new Circle ();
            double distance;

            Console.Write ("Circle one x : ");
            c1.x = Convert.ToInt32 (Console.ReadLine ());
            Console.Write ("Circle one y : ");
            c1.y = Convert.ToInt32 (Console.ReadLine ());
             		Console.Write ("Circle one Radius : ");
            c1.r = Convert.ToInt32 (Console.ReadLine ());
            Console.Write ("Circle two x : ");
            c2.x = Convert.ToInt32 (Console.ReadLine ());
            Console.Write ("Circle two y : ");
            c2.y = Convert.ToInt32 (Console.ReadLine ());
            Console.Write ("Circle two Radius : ");
            c2.r = Convert.ToInt32 (Console.ReadLine ());

            distance = Math.Sqrt (Math.Pow ((c1.x - c2.x),2) + Math.Pow ((c1.y-c2.y),2));
            if (distance - (c1.r + c2.r) <= 0)
                Console.WriteLine (" 충!!돌!!");
            else
                Console.WriteLine (" 충돌하지 않았어요");
        }
Beispiel #16
0
 public Cylinder(Circle a)
 {
     X = a.X;
     Y = a.Y;
     Radius = a.Radius;
     Height = 1.0;
 }
Beispiel #17
0
 public Cylinder(Circle a)
 {
     Console.WriteLine(a._pointcenter.x);
     rr._pointcenter.x = a._pointcenter.x;
     rr._pointcenter.y = a._pointcenter.y;
     rr.redius = a.redius;
     height = 1.0;
 }
Beispiel #18
0
        public static void Main(string[] args)
        {
            // Test Program for Lab401
            Circle c1 = new Circle(), c2=new Circle(1.5,5.0,2), c3=new Circle(c2);
            Console.WriteLine(c1+"\n"+c2+"\n"+c3);

            Cylinder cl1 = new Cylinder (), cl2 = new Cylinder (c3), cl3 = new Cylinder (1, 1, 3, 4);
            Cylinder cl4 = new Cylinder (cl3);
            Console.WriteLine(cl1+"\n"+cl2+"\n"+cl3+"\n"+cl4);
        }
        private void button3_Click(object sender, EventArgs e)
        {
            /*원 그리기*/
            Random random = new Random();
            int left = random.Next(1, 100);
            int top = random.Next(200, 450);
            int width = random.Next(10, 140);
            int height = random.Next(10, 250);

            Circle circle = new Circle(left, top, width, height);

            figures.Add(circle);

            Form1_Paint(null, null);
        }
Beispiel #20
0
 public Circle(Circle obj)
 {
     _center = new Point(obj.Center); // not sure
     _radius = obj.Radius;
 }
Beispiel #21
0
        public Circle(Circle a)
        {
            _XY = new Point(a._XY);

            _Radius = a._Radius;
        }
Beispiel #22
0
 public Circle(Circle iCircle)
 {
     Center = iCircle.Center;
     Radius = iCircle.Radius;
 }
Beispiel #23
0
 public Circle(Circle c)
 {
     _center = c.Center;
     _radius = c.Radius;
 }
Beispiel #24
0
 public Circle(Circle cc)
     : base(cc.x , cc.y)
 {
     _Radius = cc._Radius;
 }
Beispiel #25
0
 public Cylinder(Circle a)
 {
     Height = 1.0;
     base.setCircle(a.X, a.Y, a.Radius);
 }
Beispiel #26
0
 public Cylinder(Circle cir)
 {
     Center = new Point(cir.Center);
     Radius = cir.Radius;
 }
Beispiel #27
0
 public Circle(Circle c)
     : base(c.X, c.Y)
 {
     radius = c.Radius;
 }
Beispiel #28
0
 public Circle(Circle c)
 {
     P = new Point(c.P);
     Radius = c.Radius;
 }
Beispiel #29
0
 public Cylinder(Cylinder copycon)
 {
     a = new Circle(copycon.a);
     _Height = copycon._Height;
 }
Beispiel #30
0
 public Circle(Circle pCircle)
 {
     Center = new Point(pCircle.Center);
     Radius = pCircle.Radius;
 }