Class XLine
Represents an extension line EntityObject (aka construction line).
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class XLine : EntityObject, IHasXData, ICloneable
Remarks
An extension line is a line in three-dimensional space that starts in the specified origin and extends to infinity in both directions.
Constructors
| Improve this Doc View SourceXLine()
Initializes a new instance of the XLine class.
Declaration
public XLine()
XLine(Vector2, Vector2)
Initializes a new instance of the XLine class.
Declaration
public XLine(Vector2 origin, Vector2 direction)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | origin | XLine Vector2 |
| Vector2 | direction | XLine Vector2 |
XLine(Vector3, Vector3)
Initializes a new instance of the XLine class.
Declaration
public XLine(Vector3 origin, Vector3 direction)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | origin | XLine Vector3 |
| Vector3 | direction | XLine Vector3 |
Properties
| Improve this Doc View SourceDirection
Gets or sets the extension line Vector3.
Declaration
public Vector3 Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
Origin
Gets or sets the extension line Vector3.
Declaration
public Vector3 Origin { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
Methods
| Improve this Doc View SourceClone()
Creates a new XLine that is a copy of the current instance.
Declaration
public override object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new XLine that is a copy of this instance. |
Overrides
| Improve this Doc View SourceTransformBy(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
Remarks
Matrix3 adopts the convention of using column vectors to represent a transformation matrix.