示例#1
0
 public Cylinder(Circle a)
 {
     Center.x = a.Center.x;
     Center.y = a.Center.y;
     radius = a.radius;
     hight = 1;
 }
示例#2
0
 public Cylinder(Circle a)
 {
     _circle._Center.x = a._Center.x ;
     _circle._Center.y = a._Center.y;
     _circle.Radius = a.Radius;
     _Height = 1;
 }
示例#3
0
 public Cylinder(Circle c)
 {
     X = c.X;
     Y = c.Y;
     Radius = c.Radius;
     Height = 1;
 }
示例#4
0
 public Cylinder(Circle a)
 {
     _surface._center.X = a._center.X;
     _surface._center.Y = a._center.Y;
     _surface.Radius = a.Radius;
     Height = 1.0;
 }
示例#5
0
 public Cylinder(Circle c)
 {
     x = c.x;
     y = c.y;
     radius = c.radius;
     height = 1.0;
 }
示例#6
0
 public Cylinder(Circle a)
 {
     height = 1.00;
     radius = a.radius;
     x = a.x;
     y = a.y;
 }
示例#7
0
 public Cylinder(Circle cpy)
 {
     _x = cpy.X;
     _y = cpy.Y;
     _height = 1.0;
     _radius = cpy.Radius;
 }
示例#8
0
 public Cylinder(Circle cir)
 {
     x = cir.x;
     y = cir.y;
     Radius = cir.Radius;
     height = 1;
 }
示例#9
0
 public Cylinder(Circle a)
 {
     x = a.x;
     y = a.y;
     radius = a.radius;
     height = 1;
 }
示例#10
0
 public Cylinder(Circle a)
 {
     X = a.X;
     Y = a.Y;
     R = a.R;
     H = 1;
 }
示例#11
0
 public Cylinder(Circle a)
 {
     Height = 1;
     Radius = a.Radius;
     x = a.x;
     y = a.y;
 }
示例#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;
 }
示例#13
0
 public Cylinder(Circle C)
 {
     x = C.x;
     y = C.y;
     Radius = C.Radius;
     Height = 1.0 ;
 }
示例#14
0
文件: Circle.cs 项目: stnmptw/week-4
 public Circle(Circle c)
 {
     Radius = c.Radius;
     /*center.X = c.X;
     center.Y = c.Y;*/
     center = new Point(c.center.X, c.center.Y);
 }
示例#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 (" 충돌하지 않았어요");
        }
示例#16
0
 public Cylinder(Circle a)
 {
     X = a.X;
     Y = a.Y;
     Radius = a.Radius;
     Height = 1.0;
 }
示例#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;
 }
示例#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);
        }
示例#20
0
 public Circle(Circle obj)
 {
     _center = new Point(obj.Center); // not sure
     _radius = obj.Radius;
 }
示例#21
0
        public Circle(Circle a)
        {
            _XY = new Point(a._XY);

            _Radius = a._Radius;
        }
示例#22
0
 public Circle(Circle iCircle)
 {
     Center = iCircle.Center;
     Radius = iCircle.Radius;
 }
示例#23
0
 public Circle(Circle c)
 {
     _center = c.Center;
     _radius = c.Radius;
 }
示例#24
0
 public Circle(Circle cc)
     : base(cc.x , cc.y)
 {
     _Radius = cc._Radius;
 }
示例#25
0
 public Cylinder(Circle a)
 {
     Height = 1.0;
     base.setCircle(a.X, a.Y, a.Radius);
 }
示例#26
0
 public Cylinder(Circle cir)
 {
     Center = new Point(cir.Center);
     Radius = cir.Radius;
 }
示例#27
0
文件: Circle.cs 项目: doi30846/week-4
 public Circle(Circle c)
     : base(c.X, c.Y)
 {
     radius = c.Radius;
 }
示例#28
0
 public Circle(Circle c)
 {
     P = new Point(c.P);
     Radius = c.Radius;
 }
示例#29
0
 public Cylinder(Cylinder copycon)
 {
     a = new Circle(copycon.a);
     _Height = copycon._Height;
 }
示例#30
0
 public Circle(Circle pCircle)
 {
     Center = new Point(pCircle.Center);
     Radius = pCircle.Radius;
 }