43 lines
671 B
C#
43 lines
671 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace StgSharp_Geometry
|
|
{
|
|
public class Circle
|
|
{
|
|
private float _centerX;
|
|
|
|
public float CenterX
|
|
{
|
|
get { return _centerX; }
|
|
set { _centerX = value; }
|
|
}
|
|
private float _centerY;
|
|
|
|
public float CenterY
|
|
{
|
|
get { return _centerY; }
|
|
set { _centerY = value; }
|
|
}
|
|
|
|
private float _radius;
|
|
public float Radius
|
|
{
|
|
get { return _radius; }
|
|
set { _radius = value; }
|
|
}
|
|
|
|
|
|
|
|
public Circle(float centerX,float centerY,float radius)
|
|
{
|
|
this._centerX = centerX;
|
|
this._centerY = centerY;
|
|
this._radius = radius;
|
|
}
|
|
}
|
|
}
|