LineSegment2d Class

This class represents line segments in 2D space. For more information, see Working with Lines.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    Teigha.RuntimeDisposableWrapper
      Teigha.GeometryEntity2d
        Teigha.GeometryCurve2d
          Teigha.GeometryLinearEntity2d
            Teigha.GeometryLineSegment2d

Namespace: Teigha.Geometry
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 24.2.0.0
Syntax
public sealed class LineSegment2d : LinearEntity2d

The LineSegment2d type exposes the following members.

Constructors
  Name Description
Public method LineSegment2d Default constructor for the LineSegment2d class. Creates a default corresponding C++ object with the lower parameter set to 0.0 and the upper parameter set to 1.0.
Public method LineSegment2d(Point2d, Point2d) Constructor for the LineSegment2d class. Creates a line segment with two specified points.
Public method LineSegment2d(Point2d, Vector2d) Constructor for the LineSegment2d class. Creates a line segment with a point and vector.
Top
Properties
  Name Description
Public property AutoDelete
(Inherited from DisposableWrapper)
Public property BoundBlock
(Inherited from Curve2d)
Public property Direction
(Inherited from LinearEntity2d)
Public property EndPoint  
Public property HasEndPoint
(Inherited from Curve2d)
Public property HasStartPoint
(Inherited from Curve2d)
Public property IsDisposed
(Inherited from DisposableWrapper)
Public property Length  
Public property MidPoint  
Public property OrthoBoundBlock
(Inherited from Curve2d)
Public property PointOnLine
(Inherited from LinearEntity2d)
Public property StartPoint  
Public property UnmanagedObject
(Inherited from DisposableWrapper)
Top
Methods
  Name Description
Public method BaryComb  
Public method Clone Clones this entity and returns a handle to the cloned entity.
(Inherited from Entity2d)
Public methodStatic member Create Creates an object based on the passed pointer and returns a handle to the created object.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Public method Dispose
(Inherited from DisposableWrapper)
Public method Equals
(Inherited from DisposableWrapper)
Public method EvaluatePoint Retrieves the point on the curve corresponding to the specified parameter value.
(Inherited from Curve2d)
Public method Explode Explodes the curve into its component sub-curves.
(Inherited from Curve2d)
Public method GetArea(Double, Double) Retrieves the area of the parametric interval defined by the passed start and end parameters.
(Inherited from Curve2d)
Public method GetArea(Double, Double, Tolerance) Retrieves the area of the parametric interval defined by the passed start and end parameters within the specified tolerance.
(Inherited from Curve2d)
Public method GetBisector Returns the infinite perpendicular bisector of this line segment.
Public method GetBoundBlockOf Retrieves the oriented bounding box of the specified parametric interval of this curve.
(Inherited from Curve2d)
Public method GetClosestPointTo(Curve2d) Retrieves the closest points between this curve and the passed curve.
(Inherited from Curve2d)
Public method GetClosestPointTo(Point2d) Retrieves the closest point on this curve to the specified point.
(Inherited from Curve2d)
Public method GetClosestPointTo(Curve2d, Tolerance) Retrieves the closest points between this curve and the passed curve within a specified tolerance.
(Inherited from Curve2d)
Public method GetClosestPointTo(Point2d, Tolerance) Retrieves the closest point on this curve to the specified point within the specified tolerance.
(Inherited from Curve2d)
Public method GetDistanceTo(Curve2d) Retrieves the distance of the closest points between this curve and the passed curve.
(Inherited from Curve2d)
Public method GetDistanceTo(Point2d) Retrieves the distance of the closest point on this curve and the specified point.
(Inherited from Curve2d)
Public method GetDistanceTo(Curve2d, Tolerance) Retrieves the distance of the closest points between this curve and the passed curve within a specified tolerance.
(Inherited from Curve2d)
Public method GetDistanceTo(Point2d, Tolerance) Retrieves the distance of the closest point on this curve and the specified point within a specified tolerance.
(Inherited from Curve2d)
Public method GetHashCode
(Inherited from DisposableWrapper)
Public method GetInterval Retrieves the parametric interval of this curve.
(Inherited from Curve2d)
Public method GetLength(Double, Double) Retrieves the arc length of the curve between the two parameter values.
(Inherited from Curve2d)
Public method GetLength(Double, Double, Tolerance) Retrieves the arc length of the curve between the two parameter values within a specified tolerance.
(Inherited from Curve2d)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public method GetLine Returns an infinite line colinear with this linear entity.
(Inherited from LinearEntity2d)
Public method GetNormalPoint(Point2d) Retrieves the point on this curve where normal extends through the passed point.
(Inherited from Curve2d)
Public method GetNormalPoint(Point2d, Tolerance) Retrieves the point on this curve where normal extends through the passed point within the specified tolerance.
(Inherited from Curve2d)
Public method GetOrthoBoundBlockOf Retrieves the bounding box of the specified parametric range of this curve. Bounding box sides are parallel to the coordinate axes.
(Inherited from Curve2d)
Public method GetParameterAtLength(Double, Double, Boolean) Retrieves the parameter value of the point whose arc length distance is the input length.
(Inherited from Curve2d)
Public method GetParameterAtLength(Double, Double, Boolean, Tolerance) Retrieves the parameter value of the point whose arc length distance is the input length.
(Inherited from Curve2d)
Public method GetParameterOf(Point2d) Retrieves the parameter value of a point.
(Inherited from Curve2d)
Public method GetParameterOf(Point2d, Tolerance) Retrieves the parameter value of a point within a specified tolerance.
(Inherited from Curve2d)
Public method GetPerpendicularLine Returns a 2D line that is perpendicular to this linear entity and passes through the specified point.
(Inherited from LinearEntity2d)
Public method GetReverseParameterCurve Reverses the parameter direction for this curve.
(Inherited from Curve2d)
Public method GetSamplePoints(Int32) Retrieves an array of sample points along this curve.
(Inherited from Curve2d)
Public method GetSamplePoints(Double, Double, Double) Retrieves specified arrays of sample points along this curve and their parameter values.
(Inherited from Curve2d)
Public method GetSegmentLength(Double, Double) Returns the length of the line segment between the two parameter values.
Public method GetSegmentLength(Double, Double, Tolerance) Returns the length of the line segment between the two parameter values according to a tolerance.
Public method GetSplitCurves Retrieves two segments of this curve split at the specified parameter value.
(Inherited from Curve2d)
Public method GetTrimmedOffset(Double, OffsetCurveExtensionType) Retrieves offset curves that represent the trimmed offset of the curve.
(Inherited from Curve2d)
Public method GetTrimmedOffset(Double, OffsetCurveExtensionType, Tolerance) Retrieves one or more offset curves that represent the trimmed offset of the curve.
(Inherited from Curve2d)
Public method GetType Gets the Type of the current instance.
(Inherited from Object)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public method IntersectWith(LinearEntity2d) Calculates an intersection point with the specified line.
(Inherited from LinearEntity2d)
Public method IntersectWith(LinearEntity2d, Tolerance) Calculates an intersection point with the specified line according to a geometry tolerance.
(Inherited from LinearEntity2d)
Public method IsClosed Checks whether the curve is closed.
(Inherited from Curve2d)
Public method IsClosed(Tolerance) Checks whether the curve is closed within a specified tolerance.
(Inherited from Curve2d)
Public method IsColinearTo(LinearEntity2d) Checks whether the specified line is colinear to this linear entity.
(Inherited from LinearEntity2d)
Public method IsColinearTo(LinearEntity2d, Tolerance) Checks whether the specified line is colinear to this linear entity according to a tolerance.
(Inherited from LinearEntity2d)
Public method IsDegenerate(Entity2d) Checks whether this curve is degenerate and returns the type of entity that the curve degenerates to (if degenerate).
(Inherited from Curve2d)
Public method IsDegenerate(Entity2d, Tolerance) Checks whether this curve is degenerate and returns the type of entity that the curve degenerates to (if degenerate).
(Inherited from Curve2d)
Public method IsEqualTo(Entity2d) Checks whether this entity is equal to the specified entity.
(Inherited from Entity2d)
Public method IsEqualTo(Entity2d, Tolerance) Checks whether this entity is equal to the specified entity within a geometric tolerance.
(Inherited from Entity2d)
Public method IsLinear(Line2d) Checks whether this curve is linear.
(Inherited from Curve2d)
Public method IsLinear(Line2d, Tolerance) Checks whether this curve is linear within a specified tolerance.
(Inherited from Curve2d)
Public method IsOn(Double) Checks whether a specified parameter value is within a valid parametric range of the curve.
(Inherited from Curve2d)
Public method IsOn(Point2d) Checks whether a specified point lies on this curve.
(Inherited from Curve2d)
Public method IsOn(Double, Tolerance) Checks whether a specified parameter value is within a parametric range of the curve.
(Inherited from Curve2d)
Public method IsOn(Point2d, Double) Checks whether a specified point lies on this curve.
(Inherited from Curve2d)
Public method IsOn(Point2d, Tolerance) Checks whether a specified point lies on this curve within specified tolerance.
(Inherited from Curve2d)
Public method IsOn(Point2d, Double, Tolerance) Checks whether a specified point lies on this curve.
(Inherited from Curve2d)
Public method IsParallelTo(LinearEntity2d) Checks whether the specified line is parallel to this linear entity.
(Inherited from LinearEntity2d)
Public method IsParallelTo(LinearEntity2d, Tolerance) Checks whether the specified line is parallel to this linear entity according to tolerance.
(Inherited from LinearEntity2d)
Public method IsPeriodic Checks whether the curve is periodic.
(Inherited from Curve2d)
Public method IsPerpendicularTo(LinearEntity2d) Checks whether the specified line is perpendicular to this linear entity.
(Inherited from LinearEntity2d)
Public method IsPerpendicularTo(LinearEntity2d, Tolerance) Checks whether the specified line is perpendicular to this linear entity according to a tolerance.
(Inherited from LinearEntity2d)
Public method Mirror Mirrors this entity about the specified 2D line.
(Inherited from Entity2d)
Public method Overlap(LinearEntity2d) Calculates and returns the overlap of this linear entity and a specified line.
(Inherited from LinearEntity2d)
Public method Overlap(LinearEntity2d, Tolerance) Calculates and returns the overlap of this linear entity and a specified line according to a tolerance.
(Inherited from LinearEntity2d)
Public method RotateBy Rotates this entity about the specified point by the specified angle.
(Inherited from Entity2d)
Public method ScaleBy Scales this entity by the specified scale factor about the specified point.
(Inherited from Entity2d)
Public method Set(Point2d, Point2d) Specifies points for this line segment.
Public method Set(Point2d, Vector2d) Specifies a point and vector for this line segment.
Public method Set(Curve2d, Point2d, Double) Specifies the parameters for this line according to the arguments.
Public method Set(Curve2d, Curve2d, Double, Double) Specifies the parameters for this line according to the arguments.
Public method SetInterval Sets the parametric range of this curve.
(Inherited from Curve2d)
Public method ToString Returns a string that represents the current object.
(Inherited from Object)
Public method TransformBy Applies the specified 2D transformation matrix to this entity.
(Inherited from Entity2d)
Public method TranslateBy Translates this entity by applying a 2D translation vector.
(Inherited from Entity2d)
Top
See Also

©  Bricsys NV. All rights reserved.