using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace MatplotlibCS.PlotItems
{
///
/// An arc, segment of an ellipse
///
public class Arc : Line2D
{
///
/// .ctor
///
/// Center x coord
/// Center y coord
/// Width along x axis
/// Height along y axis
/// rotation in degrees (anti-clockwise)
/// starting angle of the arc in degrees
/// ending angle of the arc in degrees
public Arc(string name, double x, double y, double width, double height, double angle, double theta1, double theta2):base(name)
{
X = x;
Y = y;
Height = height;
Width = width;
Angle = angle;
Theta1 = theta1;
Theta2 = theta2;
ShowLegend = false;
}
///
/// Center x coord
///
[JsonProperty(PropertyName = "x")]
public double X { get; set; }
///
/// Center y coord
///
[JsonProperty(PropertyName = "y")]
public double Y { get; set; }
///
/// Width along x axis
///
[JsonProperty(PropertyName = "width")]
public double Width { get; set; }
///
/// Height along y axis
///
[JsonProperty(PropertyName = "height")]
public double Height { get; set; }
///
/// rotation in degrees (anti-clockwise)
///
[JsonProperty(PropertyName = "angle")]
public double Angle { get; set; }
///
/// starting angle of the arc in degrees
///
[JsonProperty(PropertyName = "theta1")]
public double Theta1 { get; set; }
///
/// ending angle of the arc in degrees
///
[JsonProperty(PropertyName = "theta2")]
public double Theta2 { get; set; }
}
}