Click or drag to resize

Line Class

[This is preliminary documentation and is subject to change.]

Represents a straight line between two points
Inheritance Hierarchy
SystemObject
  Infrastructure.Geometry.CurvesCurve
    Infrastructure.Geometry.CurvesLine

Namespace:  Infrastructure.Geometry.Curves
Assembly:  Infrastructure.Geometry (in Infrastructure.Geometry.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public sealed class Line : Curve

The Line type exposes the following members.

Constructors
  NameDescription
Public methodLine(IEnumerablePoint)
Create a new line based on the given points. Only the first and last point will be used
Public methodLine(Point, Point)
Create a new line using the given start and end point
Top
Properties
  NameDescription
Public propertyBegin
The first point of the curve
(Inherited from Curve.)
Public propertyEnd
The last point of the curve
(Inherited from Curve.)
Public propertyNumberOfPointsRequiredForRendering
Determines how many points the curve needs in order to be rendered correctly
(Overrides CurveNumberOfPointsRequiredForRendering.)
Public propertyPoints
The list of points that make up the curve
(Inherited from Curve.)
Top
Methods
  NameDescription
Public methodGetAbsolutePart(Double, Double)
Retrieves an absolute part of the curve as new curve
(Inherited from Curve.)
Public methodGetAbsolutePart(Double, Double, Origin)
Retrieves an absolute part of the curve as a new curve. The origin parameter will dictate the direction of the curve
(Inherited from Curve.)
Public methodGetCoordinateSystemOnRelativePosition
Returns the coordinate system in a given point on the curve
(Inherited from Curve.)
Public methodGetPointOnPosition
Retrieve a point on the specified position of the curve
(Overrides CurveGetPointOnPosition(Double).)
Public methodGetPositions
Generate a list of relative values that represent positions on the curve. All values are between 0 and 1
(Inherited from Curve.)
Public methodGetPositionsByApproximation
Generate a list of relative values that represent positions on the curve. The amount of values returned is determined by GetSegmentCount
(Inherited from Curve.)
Public methodGetPositionsByCount
Generate a number of relative values that represent positions on the curve. All values are between 0 and 1
(Inherited from Curve.)
Public methodGetRelativePart(Double, Double)
Retrieves a relative part of the curve as new curve
(Inherited from Curve.)
Public methodGetRelativePart(Double, Double, Origin)
Retrieves a relative part of the curve as a new curve. The origin parameter will dictate the direction of the curve
(Inherited from Curve.)
Public methodCode exampleGetSegmentCount
Determines out of how many "segments" the curve should exist when rendering.
(Overrides CurveGetSegmentCount.)
Public methodGetTangentVector
Retrieves the tangent vector of the curve at the specified position
(Overrides CurveGetTangentVector(Double).)
Public methodIsPointOn
Verifies the given point is on the curve
(Overrides CurveIsPointOn(Point).)
Public methodLength
Determines the length of the curve, in meters
(Overrides CurveLength.)
Top
See Also