Bezier.fromCoordinates constructor

Bezier.fromCoordinates(
  1. Coordinate startPoint,
  2. Coordinate control1,
  3. Coordinate control2,
  4. Coordinate endPoint,
)

Implementation

factory Bezier.fromCoordinates(Coordinate startPoint, Coordinate control1, Coordinate control2, Coordinate endPoint)
{
  return new Bezier(startPoint.x, startPoint.y, control1.x, control1.y, control2.x, control2.y, endPoint.x, endPoint.y);
}