Struct Line2d
Line 2D struct type for handling of a 2-dimensional lines
Namespace: FpAssistantCore.General
Assembly: FpAssistantCoreScl.dll
Syntax
public struct Line2d
Constructors
View SourceLine2d(Point2d, Point2d)
Constructor using two Point2d's values
Declaration
public Line2d(Point2d start, Point2d end)
Parameters
Type | Name | Description |
---|---|---|
Point2d | start | |
Point2d | end |
Properties
View SourceEnd
Property to access the second point of the 2d line
Declaration
public Point2d End { get; set; }
Property Value
Type | Description |
---|---|
Point2d | FPAssistant Point2d |
Start
Property to access the start point of the 2d line
Declaration
public Point2d Start { get; set; }
Property Value
Type | Description |
---|---|
Point2d | FPAssistant Point2d |
Methods
View SourceExtendBy(Double, Line2dPointType)
Extend line by a specified distance
Declaration
public void ExtendBy(double distanceToExtend, Line2dPointType line2DPoints)
Parameters
Type | Name | Description |
---|---|---|
System.Double | distanceToExtend | Distance to extend the line by |
Line2dPointType | line2DPoints | Which end of the line to extend |
GetOffset(Double)
Offset the line, +ve right side / -ve left side
Declaration
public Line2d GetOffset(double distanceToOffset)
Parameters
Type | Name | Description |
---|---|---|
System.Double | distanceToOffset |
Returns
Type | Description |
---|---|
Line2d | Line2d - New line offset |