iText 8.0.5 API
iText.Kernel.Geom.Line Class Reference

Represents a line. More...

Inheritance diagram for iText.Kernel.Geom.Line:
iText.Kernel.Geom.IShape

Public Member Functions

  Line ()
  Constructs a new zero-length line starting at zero. More...
 
  Line (float x1, float y1, float x2, float y2)
  Constructs a new line based on the given coordinates. More...
 
  Line (Point p1, Point p2)
  Constructs a new line based on the given coordinates. More...
 
virtual IList< Point GetBasePoints ()
  Treat base points as the points which are enough to construct a shape. More...
 

Detailed Description

Represents a line.

Constructor & Destructor Documentation

◆ Line() [1/3]

iText.Kernel.Geom.Line.Line ( )
inline

Constructs a new zero-length line starting at zero.

◆ Line() [2/3]

iText.Kernel.Geom.Line.Line ( float  x1,
float  y1,
float  x2,
float  y2 
)
inline

Constructs a new line based on the given coordinates.

Parameters
x1 x-coordinate of start point of this Line
y1 y-coordinate of start point of this Line
x2 x-coordinate of end point of this Line
y2 y-coordinate of end point of this Line

◆ Line() [3/3]

iText.Kernel.Geom.Line.Line ( Point  p1,
Point  p2 
)
inline

Constructs a new line based on the given coordinates.

Parameters
p1 start point of this Line
p2 end point of this Line

Member Function Documentation

◆ GetBasePoints()

virtual IList<Point> iText.Kernel.Geom.Line.GetBasePoints ( )
inlinevirtual

Treat base points as the points which are enough to construct a shape.

Treat base points as the points which are enough to construct a shape. E.g. for a bezier curve they are control points, for a line segment - the start and the end points of the segment.

Returns
Ordered System.Collections.IList consisting of shape's base points.

Implements iText.Kernel.Geom.IShape.