michael@0: michael@0: /* michael@0: * Copyright 2011 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: #ifndef SkCubicInterval_DEFINED michael@0: #define SkCubicInterval_DEFINED michael@0: michael@0: #include "SkPoint.h" michael@0: michael@0: SkScalar SkEvalCubicInterval(SkScalar x1, SkScalar y1, michael@0: SkScalar x2, SkScalar y2, michael@0: SkScalar unitX); michael@0: michael@0: static inline SkScalar SkEvalCubicInterval(const SkPoint pts[2], SkScalar x) { michael@0: return SkEvalCubicInterval(pts[0].fX, pts[0].fY, michael@0: pts[1].fX, pts[1].fY, x); michael@0: } michael@0: michael@0: #endif