CurveToY Class Documentation

class CurveToY : Segment

Namespace:datalogics_interface

Inherits from:
Segment

Detailed Description

A curveto operator where the second control point matches the end point.

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

CurveToY(const Point & p1, const Point & p3)

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(double x1, double y1, double x3, double y3)

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

Point point1()

Returns:

Point

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

point3

Point point3()

Returns:

Point

The end point of the curve.

to_string

std::string to_string()

Returns:

std::string

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