// The GeoArc Backing Field /// <inheritdoc /> /// <summary> /// The <see cref="T:Dxflib.Entities.CircularArcBuffer" /> constructor /// for the Arc Entity /// </summary> /// <param name="ab">The <see cref="T:Dxflib.Entities.CircularArcBuffer" /></param> public CircularArc(CircularArcBuffer ab) : base(ab) { EntityType = ab.EntityType; GeometricArc = new GeoArc( new Vertex(ab.CenterPointX, ab.CenterPointY, ab.CenterPointZ), GeoMath.DegToRad(ab.StartAngle), GeoMath.DegToRad(ab.EndAngle), ab.Radius ); Thickness = ab.Thickness; }
/// <inheritdoc /> /// <summary> /// Circle Buffer Constructor /// </summary> /// <param name="cb">A <see cref="CircularArcBuffer" /> Buffer</param> /// <remarks> /// Note that only the Radius and CenterPoint information will be used from the /// Buffer /// </remarks> public Circle(CircularArcBuffer cb) : base(cb) { EntityType = typeof(Circle); CenterPoint = new Vertex(cb.CenterPointX, cb.CenterPointY, cb.CenterPointZ); Radius = cb.Radius; }