LineTo Class Documentation
class LineTo : SegmentNamespace:Datalogics::PDFL
- Inherits from:
Segment
Detailed Description
A lineto operator, which draws a straight line.
A lineto operator creates a line path element. It draws a straight line from the current position (MoveTo) to a new position-a new set of (x,y) coordinates: MoveTo{x:0 y:50} LineTo{x:100 y:100}
Uses types
Constructor & Destructor Documentation
LineTo
LineTo(double x, double y)Parameters
x: doubleThe horizontal coordinate of the destination point.
y: doubleThe vertical coordinate of the destination point.
Create a line to a new point specified by coordinates.
Append a straight line segment from the current point to the point (x, y). The new current point is the point the line is drawn to.
LineTo
LineTo(Point lineToPoint)Parameters
lineToPoint: PointThe destination point for the line segment.
Create a line to a new point.
Append a straight line segment from the current point to the lineToPoint. The new current point is the point the line is drawn to.
Property Documentation
Point
Point Point[get, set]The new current point.
Member Function Documentation
Dispose
void Dispose()Returns:
voidToString
override string ToString()Returns:
override stringA string in the format "[ LineTo {x, y} ]".
Returns a string representation of this LineTo segment.