Table of Contents

Class Line

Namespace
OpenMEPSandbox.Geometry
Assembly
OpenMEPSandbox.dll
public class Line
Inheritance
Line
Inherited Members

Methods

BottomPoint(Line)

get bottom point of line

public static Point BottomPoint(Line line)

Parameters

line Line

the line to get

Returns

Point

bottom point

Examples

Line.BottomPoint.dyn

Extend(Line, double, double)

Extends the line by lengths on both side.

public static Line Extend(Line line, double startLength, double endLength)

Parameters

line Line

the line need to extend

startLength double

Length to extend the line at the start point.

endLength double

Length to extend the line at the end point.

Returns

Line

The extended line.

Examples

Line.Extend.dyn

Slope(Curve?, double)

Return slope of line

[MultiReturn(new string[] { "Percent", "Degrees", "Ratio" })]
public static Dictionary<string, object?> Slope(Curve? line, double digits = 0)

Parameters

line Curve

line to get slope

digits double

Number of fractional digits in the return value

Returns

Dictionary<string, object>

Examples

Line.Slope.dyn

TopPoint(Line)

get top point of line

public static Point TopPoint(Line line)

Parameters

line Line

the line to get

Returns

Point

top point

Examples

Line.TopPoint.dyn