MoveTo Class Documentation
classMoveTo : SegmentNamespace:datalogics_interface
- Inherits from:
Segment
Detailed Description
A LineTo operator creates an addition to a path element by moving to the (x,y) coordinates specified in the MoveTo statement. The MoveTo coordinates serve as the new current position, and from here a new path element can start.
For example, the MoveTo coordinates can define the starting position for a LineTo operator. The LineTo operator draws a straight line from the current position (MoveTo) to a new position, the set of (x,y) coordinates defined with the LineTo operator: MoveTo{x:0 y:50} LineTo{x:100 y:100}
Uses types
Constructor & Destructor Documentation
MoveTo
MoveTo(const Point &pt)Parameters
pt: const Point &The new current point to move to.
Begin a new subpath by moving the current point to a new point, omitting any connecting line segment. If the previous path segment in the current path was also a MoveTo, the new m overrides it; no vestige of the previous MoveTo operation remains in the path.
MoveTo
MoveTo(doublex, doubley)Parameters
x: doubleThe new current point to move to.
y: double
Begin a new subpath by moving the current point to a new point, omitting any connecting line segment. If the previous path segment in the current path was also a MoveTo, the new m overrides it; no vestige of the previous MoveTo operation remains in the path.
~MoveTo
~MoveTo()Member Function Documentation
point
Pointpoint()Returns:
The destination of the move-to.to_string
std::stringto_string()Returns:
std::stringRepresents a segment, or a single line, within a path.