1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CubicBezierControlPoints_h
6 #define CubicBezierControlPoints_h
10 struct CubicBezierControlPoints
{
16 CubicBezierControlPoints()
27 CubicBezierControlPoints(double x0
, double y0
, double x1
, double y1
,
28 double x2
, double y2
, double x3
, double y3
)
39 void divide(double t
, CubicBezierControlPoints
& left
, CubicBezierControlPoints
& right
) const;
40 size_t findTurningPoints(double& left
, double& right
) const;
41 bool findIntersection(double intersectionY
, double& intersectionX
) const;
44 bool findInflexionPoint(double& solution
) const;