| 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 |
| 7 #include "PathOpsCubicIntersectionTestData.h" | 8 #include "PathOpsCubicIntersectionTestData.h" |
| 9 |
| 8 #include <limits> | 10 #include <limits> |
| 9 | 11 |
| 10 static const double D = FLT_EPSILON / 2; | 12 static const double D = FLT_EPSILON / 2; |
| 11 static const double G = FLT_EPSILON / 3; | 13 static const double G = FLT_EPSILON / 3; |
| 12 static const double N = -FLT_EPSILON / 2; | 14 static const double N = -FLT_EPSILON / 2; |
| 13 static const double M = -FLT_EPSILON / 3; | 15 static const double M = -FLT_EPSILON / 3; |
| 14 | 16 |
| 15 const SkDCubic pointDegenerates[] = { | 17 const SkDCubic pointDegenerates[] = { |
| 16 {{{0, 0}, {0, 0}, {0, 0}, {0, 0}}}, | 18 {{{0, 0}, {0, 0}, {0, 0}, {0, 0}}}, |
| 17 {{{1, 1}, {1, 1}, {1, 1}, {1, 1}}}, | 19 {{{1, 1}, {1, 1}, {1, 1}, {1, 1}}}, |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 {{{1, 1}, {4, 4}, {3, 3}, {2+M, 2}}}, // INVESTIGATE: why the epsilon is sm
aller | 266 {{{1, 1}, {4, 4}, {3, 3}, {2+M, 2}}}, // INVESTIGATE: why the epsilon is sm
aller |
| 265 {{{2, 2}, {1, 1}, {3+N, 3}, {4, 4}}}, | 267 {{{2, 2}, {1, 1}, {3+N, 3}, {4, 4}}}, |
| 266 {{{2, 2}, {1+N, 1}, {4, 4}, {3, 3}}}, | 268 {{{2, 2}, {1+N, 1}, {4, 4}, {3, 3}}}, |
| 267 {{{2, 2+N}, {3, 3}, {1, 1}, {4, 4}}}, | 269 {{{2, 2+N}, {3, 3}, {1, 1}, {4, 4}}}, |
| 268 {{{2+M, 2}, {3, 3}, {4, 4}, {1, 1}}}, // INVESTIGATE: why the epsilon is sm
aller | 270 {{{2+M, 2}, {3, 3}, {4, 4}, {1, 1}}}, // INVESTIGATE: why the epsilon is sm
aller |
| 269 {{{2, 2}, {4+N, 4}, {1, 1}, {3, 3}}}, | 271 {{{2, 2}, {4+N, 4}, {1, 1}, {3, 3}}}, |
| 270 {{{2, 2}, {4, 4}, {3, 3}, {1, 1+N}}}, | 272 {{{2, 2}, {4, 4}, {3, 3}, {1, 1+N}}}, |
| 271 }; | 273 }; |
| 272 | 274 |
| 273 const size_t negEpsilonLines_count = SK_ARRAY_COUNT(negEpsilonLines); | 275 const size_t negEpsilonLines_count = SK_ARRAY_COUNT(negEpsilonLines); |
| OLD | NEW |