Graphics/GraphicsEllipse.cs
(完整代码) 1013Busing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace DrawingPad.Graphics
{
public class GraphicsEllipse : GraphicsRectangle
{
#region 属性
public override GraphicsType Type { get { return GraphicsType.Ellipse; } }
public double RadiusX { get { return this.Width / 2; } }
public double RadiusY { get { return this.Height / 2; } }
public double CenterX { get { return this.Point1X + this.RadiusX; } }
public double CenterY { get { return this.Point1Y + this.RadiusY; } }
#endregion
#region GraphicsBase
public override Rect GetBounds()
{
return new Rect()
{
X = this.Point1X,
Y = this.Point1Y,
Height = this.Height,
Width = this.Width
};
}
#endregion
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。