LineTo Class Documentation

classLineTo : Segment

Namespace:datalogics_interface

Inherits from:
Segment

Detailed Description

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(const Point &pt)

Parameters

pt: const Point &

The destination point for the line segment.

Append a straight line segment from the current point to the lineToPoint. The new current point is the point the line is drawn to.

LineTo

LineTo(doublex, doubley)

Parameters

x: double

The destination point for the line segment.

y: double

Append a straight line segment from the current point to the lineToPoint. The new current point is the point the line is drawn to.

~LineTo

~LineTo()

Member Function Documentation

point

Pointpoint()

Returns:

The destination of the line-to.

to_string

std::stringto_string()

Returns:

std::string

Represents a segment, or a single line, within a path.