| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #ifndef SkPathOpsPoint_DEFINED | 7 #ifndef SkPathOpsPoint_DEFINED |
| 8 #define SkPathOpsPoint_DEFINED | 8 #define SkPathOpsPoint_DEFINED |
| 9 | 9 |
| 10 #include "SkPathOpsTypes.h" | 10 #include "SkPathOpsTypes.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 return result; | 152 return result; |
| 153 } | 153 } |
| 154 | 154 |
| 155 double moreRoughlyEqual(const SkDPoint& a) const { | 155 double moreRoughlyEqual(const SkDPoint& a) const { |
| 156 return more_roughly_equal(a.fY, fY) && more_roughly_equal(a.fX, fX); | 156 return more_roughly_equal(a.fY, fY) && more_roughly_equal(a.fX, fX); |
| 157 } | 157 } |
| 158 | 158 |
| 159 double roughlyEqual(const SkDPoint& a) const { | 159 double roughlyEqual(const SkDPoint& a) const { |
| 160 return roughly_equal(a.fY, fY) && roughly_equal(a.fX, fX); | 160 return roughly_equal(a.fY, fY) && roughly_equal(a.fX, fX); |
| 161 } | 161 } |
| 162 |
| 163 #ifdef SK_DEBUG |
| 164 void dump() { |
| 165 SkDebugf("{"); |
| 166 DebugDumpDouble(fX); |
| 167 SkDebugf(", "); |
| 168 DebugDumpDouble(fY); |
| 169 SkDebugf("}"); |
| 170 } |
| 171 |
| 172 static void DumpSkPoint(const SkPoint& pt) { |
| 173 SkDebugf("{"); |
| 174 DebugDumpFloat(pt.fX); |
| 175 SkDebugf(", "); |
| 176 DebugDumpFloat(pt.fY); |
| 177 SkDebugf("}"); |
| 178 } |
| 179 #endif |
| 162 }; | 180 }; |
| 163 | 181 |
| 164 #endif | 182 #endif |
| OLD | NEW |