DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="3.3.0-beta6200" />

 Line

public class Line : Curve
public Vector Direction { get; }

The direction of the Curve

public static Line ByBestFitThroughPoints(IEnumerable<Point> bestFitPoints)

Creates a Line best approximating a scatter plot of Points.

public static Line ByStartPointDirectionLength(Point startPoint, Vector direction, double length = 1)

Create a straight Line starting at start Point, extending in Vector direction by specified length.

public static Line ByStartPointEndPoint(Point startPoint, Point endPoint)

Creates a straight Line between two input Points.

public static Line ByTangency(Curve curve, double parameter = 0)

Create a Line tangent to the input Curve, positioned at the parameter Point of the input Curve.