michael@0: /* michael@0: * Copyright 2012 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: #include "SkPathOpsPoint.h" michael@0: michael@0: SkDVector operator-(const SkDPoint& a, const SkDPoint& b) { michael@0: SkDVector v = {a.fX - b.fX, a.fY - b.fY}; michael@0: return v; michael@0: } michael@0: michael@0: SkDPoint operator+(const SkDPoint& a, const SkDVector& b) { michael@0: SkDPoint v = {a.fX + b.fX, a.fY + b.fY}; michael@0: return v; michael@0: }