Home | History | Annotate | Download | only in chromium

Lines Matching refs:p0

159     static Quadratic fromBezier(FloatPoint p0, FloatPoint p1, FloatPoint p2)
163 FloatPoint b = -2.0f * p0 + 2.0f * p1s;
164 FloatPoint c = p0 - 2.0f * p1s + p2s;
165 return Quadratic(p0, b, c);
180 static Cubic fromBezier(FloatPoint p0, FloatPoint p1, FloatPoint p2, FloatPoint p3)
185 FloatPoint b = -3.0f * p0 + 3.0f * p1s;
186 FloatPoint c = 3.0f * p0 - 6.0f * p1s + 3.0f * p2s;
187 FloatPoint d = -1.0f * p0 + 3.0f * p1s - 3.0f * p2s + p3s;
188 return Cubic(p0, b, c, d);
556 static void interpolateQuadratic(FloatPointVector* vertices, const FloatPoint& p0, const FloatPoint& p1, const FloatPoint& p2)
559 Quadratic c = Quadratic::fromBezier(p0, p1, p2);
564 static void interpolateCubic(FloatPointVector* vertices, const FloatPoint& p0, const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& p3)
567 Cubic c = Cubic::fromBezier(p0, p1, p2, p3);