1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/include/utils/SkCubicInterval.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 + 1.5 +/* 1.6 + * Copyright 2011 Google Inc. 1.7 + * 1.8 + * Use of this source code is governed by a BSD-style license that can be 1.9 + * found in the LICENSE file. 1.10 + */ 1.11 +#ifndef SkCubicInterval_DEFINED 1.12 +#define SkCubicInterval_DEFINED 1.13 + 1.14 +#include "SkPoint.h" 1.15 + 1.16 +SkScalar SkEvalCubicInterval(SkScalar x1, SkScalar y1, 1.17 + SkScalar x2, SkScalar y2, 1.18 + SkScalar unitX); 1.19 + 1.20 +static inline SkScalar SkEvalCubicInterval(const SkPoint pts[2], SkScalar x) { 1.21 + return SkEvalCubicInterval(pts[0].fX, pts[0].fY, 1.22 + pts[1].fX, pts[1].fY, x); 1.23 +} 1.24 + 1.25 +#endif