CurveToY Class Documentation

classCurveToY : Segment

Namespace:datalogics_interface

Inherits from:
Segment

Detailed Description

Here the new current point is the end point in the curve.

The name CurveToY is drawn from the "Y" path construction operator.

Uses types

Constructor & Destructor Documentation

CurveToY

Parameters

p1: const Point &

the first control point.

p3: const Point &

the new current point.

Append a cubic Bézier curve to the current path. The curve extends from the current point to point3, using point1 and point3 as the Bézier control points. The new current point is point3.

CurveToY

CurveToY(doublex1, doubley1, doublex3, doubley3)

Parameters

x1: double

the first control point.

y1: double

the new current point.

x3: double
y3: double

Append a cubic Bézier curve to the current path. The curve extends from the current point to point3, using point1 and point3 as the Bézier control points. The new current point is point3.

~CurveToY

~CurveToY()

Member Function Documentation

point1

Pointpoint1()

Returns:

The single off-curve control point (the end point is reused as the second control point).

point3

Pointpoint3()

Returns:

The end point of the curve.

to_string

std::stringto_string()

Returns:

std::string

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