RectSegment Class Documentation
classRectSegment : SegmentNamespace:datalogics_interface
- Inherits from:
Segment
Detailed Description
RectSegment represents a single path, or line, within a rectangle, with coordinates xy, xy for the beginning and end of the line.
Uses types
Constructor & Destructor Documentation
RectSegment
RectSegment(const Point &pt, doublewidth, doubleheight)Parameters
pt: const Point &the lower left corner of the rectangle.
width: doublethe width of the rectangle.
height: doublethe height of the rectangle.
Append a rectangle to the current path as a complete subpath, with lower-left corner point and dimensions width and height in user space.
RectSegment
RectSegment(doublex, doubley, doublewidth, doubleheight)Parameters
x: doublethe lower left corner of the rectangle.
y: doublethe width of the rectangle.
width: doublethe height of the rectangle.
height: double
Append a rectangle to the current path as a complete subpath, with lower-left corner point and dimensions width and height in user space.
~RectSegment
~RectSegment()Member Function Documentation
height
doubleheight()Returns:
The height of the rectangle.point
Pointpoint()Returns:
The lower-left corner of the rectangle.to_string
std::stringto_string()Returns:
std::stringRepresents a segment, or a single line, within a path.
width
doublewidth()Returns:
The width of the rectangle.