Show / Hide Table of Contents

Class Arc

Represents a circular arc EntityObject.

Inheritance
System.Object
DxfObject
EntityObject
Arc
Implements
IHasXData
System.ICloneable
Inherited Members
EntityObject.LayerChanged
EntityObject.OnLayerChangedEvent(Layer, Layer)
EntityObject.LinetypeChanged
EntityObject.OnLinetypeChangedEvent(Linetype, Linetype)
EntityObject.XDataAddAppReg
EntityObject.OnXDataAddAppRegEvent(ApplicationRegistry)
EntityObject.XDataRemoveAppReg
EntityObject.OnXDataRemoveAppRegEvent(ApplicationRegistry)
EntityObject.Reactors
EntityObject.Type
EntityObject.Color
EntityObject.Layer
EntityObject.Linetype
EntityObject.Lineweight
EntityObject.Transparency
EntityObject.LinetypeScale
EntityObject.IsVisible
EntityObject.Normal
EntityObject.Owner
EntityObject.XData
EntityObject.TransformBy(Matrix4)
EntityObject.ToString()
DxfObject.CodeName
DxfObject.Handle
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class Arc : EntityObject, IHasXData, ICloneable

Constructors

| Improve this Doc View Source

Arc()

Initializes a new instance of the Arc class.

Declaration
public Arc()
| Improve this Doc View Source

Arc(Vector2, Double, Double, Double)

Initializes a new instance of the Arc class.

Declaration
public Arc(Vector2 center, double radius, double startAngle, double endAngle)
Parameters
Type Name Description
Vector2 center

Arc Vector2 in world coordinates.

System.Double radius

Arc radius.

System.Double startAngle

Arc start angle in degrees.

System.Double endAngle

Arc end angle in degrees.

| Improve this Doc View Source

Arc(Vector3, Double, Double, Double)

Initializes a new instance of the Arc class.

Declaration
public Arc(Vector3 center, double radius, double startAngle, double endAngle)
Parameters
Type Name Description
Vector3 center

Arc Vector3 in world coordinates.

System.Double radius

Arc radius.

System.Double startAngle

Arc start angle in degrees.

System.Double endAngle

Arc end angle in degrees.

Properties

| Improve this Doc View Source

Center

Gets or sets the arc Vector3 in world coordinates.

Declaration
public Vector3 Center { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

EndAngle

Gets or sets the arc end angle in degrees.

Declaration
public double EndAngle { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Radius

Gets or sets the arc radius.

Declaration
public double Radius { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

StartAngle

Gets or sets the arc start angle in degrees.

Declaration
public double StartAngle { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Thickness

Gets or sets the arc thickness.

Declaration
public double Thickness { get; set; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Clone()

Creates a new Arc that is a copy of the current instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new Arc that is a copy of this instance.

Overrides
EntityObject.Clone()
| Improve this Doc View Source

PolygonalVertexes(Int32)

Converts the arc in a list of vertexes.

Declaration
public List<Vector2> PolygonalVertexes(int precision)
Parameters
Type Name Description
System.Int32 precision

Number of divisions.

Returns
Type Description
System.Collections.Generic.List<Vector2>

A list vertexes that represents the arc expressed in object coordinate system.

| Improve this Doc View Source

ToPolyline(Int32)

Converts the arc in a Polyline.

Declaration
public LwPolyline ToPolyline(int precision)
Parameters
Type Name Description
System.Int32 precision

Number of divisions.

Returns
Type Description
LwPolyline

A new instance of LwPolyline that represents the arc.

| Improve this Doc View Source

TransformBy(Matrix3, Vector3)

Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.

Declaration
public override void TransformBy(Matrix3 transformation, Vector3 translation)
Parameters
Type Name Description
Matrix3 transformation

Transformation matrix.

Vector3 translation

Translation vector.

Overrides
EntityObject.TransformBy(Matrix3, Vector3)
Remarks

Non-uniform scaling is not supported, create an ellipse arc from the arc data and transform that instead.
Matrix3 adopts the convention of using column vectors to represent a transformation matrix.

Implements

IHasXData
System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX