Class CADLine
Represents a CAD line with start and end points, and a color.
Namespace: Evergine.Runtimes.CAD.DataTypes
Assembly: Evergine.Runtimes.CAD.dll
Syntax
public class CADLine
Constructors
CADLine(XY, XY, Color)
Initializes a new instance of the CADLine class using 2D points.
Declaration
public CADLine(XY initPoint, XY endPoint, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| XY | initPoint | The initial point of the line in 2D space. |
| XY | endPoint | The end point of the line in 2D space. |
| Color | color | The color of the line. |
CADLine(XYZ, XYZ, Color)
Initializes a new instance of the CADLine class using 3D points.
Declaration
public CADLine(XYZ initPoint, XYZ endPoint, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| XYZ | initPoint | The initial point of the line in 3D space. |
| XYZ | endPoint | The end point of the line in 3D space. |
| Color | color | The color of the line. |
Properties
Color
Gets or sets the color of the CAD line.
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
End
Gets or sets the end point of the CAD line.
Declaration
public Vector3 End { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
Init
Gets or sets the initial point of the CAD line.
Declaration
public Vector3 Init { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |