Bezier constructor

Bezier(
  1. double x0,
  2. double y0,
  3. double x1,
  4. double y1,
  5. double x2,
  6. double y2,
  7. double x3,
  8. double y3,
)

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;
}