# R2 - DrawSpline

void R2::DrawSpline(long long x1,
long long y1,
long long x2,
long long y2,
long long x3,
long long y3,
long long x4,
long long y4)

This method draws a spline.

## Parameters

long long x1

The x-coordinate of the starting point of the spline.

long long y1

The y-coordinate of the starting point of the spline.

long long x2

The x-coordinate of the first control point of the spline.

long long y2

The y-coordinate of the first control point of the spline.

long long x3

The x-coordinate of the second control point of the spline.

long long y3

The y-coordinate of the second control point of the spline.

long long x4

The x-coordinate of the ending point of the spline.

long long y4

The y-coordinate of the ending point of the spline.

## Notes

A line drawn from the starting point to the first control point
is tangential to the spline. A line drawn from from the ending point of the spline
to the second control point is also tangential to the spline. The starting and ending
points together with the tangents at these points completely determine the shape
of the spline.