Bezier constructor
Object representing a cubic bezier curve. @param {number} x0 X coordinate of the start point. @param {number} y0 Y coordinate of the start point. @param {number} x1 X coordinate of the first control point. @param {number} y1 Y coordinate of the first control point. @param {number} x2 X coordinate of the second control point. @param {number} y2 Y coordinate of the second control point. @param {number} x3 X coordinate of the end point. @param {number} y3 Y coordinate of the end point. @struct @constructor @final
Implementation
Bezier(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)
{
/**
* X coordinate of the first point.
* @type {number}
*/
this.x0 = x0;
/**
* Y coordinate of the first point.
* @type {number}
*/
this.y0 = y0;
/**
* X coordinate of the first control point.
* @type {number}
*/
this.x1 = x1;
/**
* Y coordinate of the first control point.
* @type {number}
*/
this.y1 = y1;
/**
* X coordinate of the second control point.
* @type {number}
*/
this.x2 = x2;
/**
* Y coordinate of the second control point.
* @type {number}
*/
this.y2 = y2;
/**
* X coordinate of the end point.
* @type {number}
*/
this.x3 = x3;
/**
* Y coordinate of the end point.
* @type {number}
*/
this.y3 = y3;
}