Show / Hide Table of Contents

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 Source

Line2d(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 Source

End

Property to access the second point of the 2d line

Declaration
public Point2d End { get; set; }
Property Value
Type Description
Point2d

FPAssistant Point2d

View Source

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 Source

ExtendBy(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

View Source

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

  • View Source
In This Article
Back to top Copyright 2018-2024 CADology Limited