API Reference > Namespaces > OdPdfPublish Namespace > Classes > Od2dGeometryBlock Class > Od2dGeometryBlock Methods > addLine Method > Od2dGeometryBlock::addLine Method (OdGePoint2d&, OdGePoint2d&)
Od2dGeometryBlock::addLine Method (OdGePoint2d&, OdGePoint2d&)
Syntax
C++
void addLine(const OdGePoint2d& start, const OdGePoint2d& end);
Parameters 
Description 
const OdGePoint2d& start 
[in] A starting point of the line.  
const OdGePoint2d& end 
[in] An ending point of the line. 

Adds a new line to the geometry object.

Any line can be defined with its two points (passed through start and end parameters).

Copyright © 2002–2020. Open Design Alliance. All rights reserved.