本文整理汇总了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;
}
示例2: Cylinder
public Cylinder(Circle a)
{
_circle._Center.x = a._Center.x ;
_circle._Center.y = a._Center.y;
_circle.Radius = a.Radius;
_Height = 1;
}
示例3: Cylinder
public Cylinder(Circle c)
{
X = c.X;
Y = c.Y;
Radius = c.Radius;
Height = 1;
}
示例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;
}
示例5: Cylinder
public Cylinder(Circle c)
{
x = c.x;
y = c.y;
radius = c.radius;
height = 1.0;
}
示例6: Cylinder
public Cylinder(Circle a)
{
height = 1.00;
radius = a.radius;
x = a.x;
y = a.y;
}
示例7: Cylinder
public Cylinder(Circle cpy)
{
_x = cpy.X;
_y = cpy.Y;
_height = 1.0;
_radius = cpy.Radius;
}
示例8: Cylinder
public Cylinder(Circle cir)
{
x = cir.x;
y = cir.y;
Radius = cir.Radius;
height = 1;
}
示例9: Cylinder
public Cylinder(Circle a)
{
x = a.x;
y = a.y;
radius = a.radius;
height = 1;
}
示例10: Cylinder
public Cylinder(Circle a)
{
X = a.X;
Y = a.Y;
R = a.R;
H = 1;
}
示例11: Cylinder
public Cylinder(Circle a)
{
Height = 1;
Radius = a.Radius;
x = a.x;
y = a.y;
}
示例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;
}
示例13: Cylinder
public Cylinder(Circle C)
{
x = C.x;
y = C.y;
Radius = C.Radius;
Height = 1.0 ;
}
示例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);
}
示例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 (" 충돌하지 않았어요");
}