API Reference > OdGe Classes > OdGeLineSeg2d Class
OdGeLineSeg2d Class
OdGeLineSeg2dOdGeLineSeg2dOdGeLineSeg2dOdGeLineSeg2d
Syntax
C++
class OdGeLineSeg2d : public OdGeLinearEnt2d;

GeLineSeg2d.h

This class represents line segments in 2D space. 2D line segment can be defined with a start and end points or with a point and a non-zero vector that specifies segment length and direction. By default its start parameter equals to 0.0 and end parameter equals to 1.0. 

Corresponding C++ library: TD_Ge 

 

 
Name 
Description 
 
This is the overview for the OdGeLineSeg2d constructor overload. 
 
Name 
Description 
 
Returns the weighted average of the start point and end point of this line segment.
 
 
Returns the end point of this line segment. 
 
Gets the infinite perpendicular bisector of this line segment.
 
 
set 
This is the overview for the set method overload. 
 
Returns the start point of this line segment. 
 
Name 
Description 
 
= 
Assignment operator for the OdGeLinearEnt2d object. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.