• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Lab4.Circle类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Lab4.Circle的典型用法代码示例。如果您正苦于以下问题:C# Circle类的具体用法?C# Circle怎么用?C# Circle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Circle类属于Lab4命名空间,在下文中一共展示了Circle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Cylinder

 public Cylinder(Circle a)
 {
     Center.x = a.Center.x;
     Center.y = a.Center.y;
     radius = a.radius;
     hight = 1;
 }
开发者ID:cpe200-158-sec2-0563,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例2: Cylinder

 public Cylinder(Circle a)
 {
     _circle._Center.x = a._Center.x ;
     _circle._Center.y = a._Center.y;
     _circle.Radius = a.Radius;
     _Height = 1;
 }
开发者ID:cpe200-158-sec1-0558,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例3: Cylinder

 public Cylinder(Circle c)
 {
     X = c.X;
     Y = c.Y;
     Radius = c.Radius;
     Height = 1;
 }
开发者ID:cpe200-158-sec2-0555,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例4: Cylinder

 public Cylinder(Circle a)
 {
     _surface._center.X = a._center.X;
     _surface._center.Y = a._center.Y;
     _surface.Radius = a.Radius;
     Height = 1.0;
 }
开发者ID:cpe200-158-sec2-0615,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例5: Cylinder

 public Cylinder(Circle c)
 {
     x = c.x;
     y = c.y;
     radius = c.radius;
     height = 1.0;
 }
开发者ID:cpe200-158-sec1-0608,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例6: Cylinder

 public Cylinder(Circle a)
 {
     height = 1.00;
     radius = a.radius;
     x = a.x;
     y = a.y;
 }
开发者ID:cpe200-158-sec1-0571,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例7: Cylinder

 public Cylinder(Circle cpy)
 {
     _x = cpy.X;
     _y = cpy.Y;
     _height = 1.0;
     _radius = cpy.Radius;
 }
开发者ID:cpe200-158-sec1-0576,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例8: Cylinder

 public Cylinder(Circle cir)
 {
     x = cir.x;
     y = cir.y;
     Radius = cir.Radius;
     height = 1;
 }
开发者ID:cpe200-158-sec1-0621,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例9: Cylinder

 public Cylinder(Circle a)
 {
     x = a.x;
     y = a.y;
     radius = a.radius;
     height = 1;
 }
开发者ID:patraporn,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例10: Cylinder

 public Cylinder(Circle a)
 {
     X = a.X;
     Y = a.Y;
     R = a.R;
     H = 1;
 }
开发者ID:cpe200-158-sec2-0613,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例11: Cylinder

 public Cylinder(Circle a)
 {
     Height = 1;
     Radius = a.Radius;
     x = a.x;
     y = a.y;
 }
开发者ID:cpe200-158-sec1-0619,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例12: Cylinder

 public Cylinder(Circle a)
 {
     Base.Center.X = a.Center.X;
     Base.Center.Y = a.Center.Y;
     Base.Radius = a.Radius;
     Height = 1.0;
 }
开发者ID:cpe200-158-sec2-0612,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例13: Cylinder

 public Cylinder(Circle C)
 {
     x = C.x;
     y = C.y;
     Radius = C.Radius;
     Height = 1.0 ;
 }
开发者ID:cpe200-158-sec1-0616,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例14: Circle

 public Circle(Circle c)
 {
     Radius = c.Radius;
     /*center.X = c.X;
     center.Y = c.Y;*/
     center = new Point(c.center.X, c.center.Y);
 }
开发者ID:stnmptw,项目名称:week-4,代码行数:7,代码来源:Circle.cs


示例15: Main

        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 (" 충돌하지 않았어요");
        }
开发者ID:ChaYongbin,项目名称:Programming-Exp,代码行数:25,代码来源:lab4.cs


示例16: Cylinder

 public Cylinder(Circle a)
 {
     X = a.X;
     Y = a.Y;
     Radius = a.Radius;
     Height = 1.0;
 }
开发者ID:cpe200-158-sec1-0556,项目名称:week-4,代码行数:7,代码来源:Cylinder.cs


示例17: Cylinder

 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;
 }
开发者ID:cpe200-158-sec1-0547,项目名称:week-4,代码行数:8,代码来源:Cylinder.cs


示例18: Main

        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);
        }
开发者ID:cpe200-158-sec1-0599,项目名称:week-4,代码行数:10,代码来源:Program.cs


示例19: button3_Click

        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);
        }
开发者ID:hataeho1,项目名称:Programming-Practice-2014-1,代码行数:15,代码来源:Form1.cs


示例20: Circle

 public Circle(Circle obj)
 {
     _center = new Point(obj.Center); // not sure
     _radius = obj.Radius;
 }
开发者ID:cpe200-158-sec1-0574,项目名称:week-4,代码行数:5,代码来源:Circle.cs



注:本文中的Lab4.Circle类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Lab4.Rectangle类代码示例发布时间:2022-05-26
下一篇:
C# Lab301.Fraction类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap