/// <summary> /// Add a new arc with center, first point and second point /// </summary> /// <param name="lType">Line type</param> /// <param name="ptCenter">Center</param> /// <param name="radius">Radius of arc</param> /// <param name="pt0">Start point</param> /// <param name="pt1">End point</param> public PicArc AddArc(PicGraphics.LT lType, short grp, short layer , Vector2D ptCenter, Vector2D pt0, Vector2D pt1) { PicArc arc = PicArc.CreateNewArc(GetNewEntityId(), lType, ptCenter, pt0, pt1); arc.Group = grp; arc.Layer = layer; AddEntity(arc); return(arc); }
/// <summary> /// Add a new arc with center, radius, start angle and end angle /// </summary> /// <param name="lType">Line type</param> /// <param name="grp">Group</param> /// <param name="layer">Layer</param> /// <param name="xc">abscissa of center</param> /// <param name="yc">ordinate of center</param> /// <param name="radius">Radius of arc</param> /// <param name="angle0">Start angle</param> /// <param name="angle1">End angle</param> public PicArc AddArc(PicGraphics.LT lType, short grp, short layer , double xc, double yc, double radius, double angle0, double angle1) { PicArc arc = PicArc.CreateNewArc(GetNewEntityId(), lType, new Vector2D(xc, yc), radius, angle0, angle1); arc.Group = grp; arc.Layer = layer; AddEntity(arc); return(arc); }