当前位置: 首页>>代码示例>>C#>>正文


C# Lab4.Circle类代码示例

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


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


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