OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 |
8 #ifndef GrPathUtils_DEFINED | 8 #ifndef GrPathUtils_DEFINED |
9 #define GrPathUtils_DEFINED | 9 #define GrPathUtils_DEFINED |
10 | 10 |
11 #include "GrPoint.h" | |
12 #include "SkRect.h" | 11 #include "SkRect.h" |
13 #include "SkPath.h" | 12 #include "SkPath.h" |
14 #include "SkTArray.h" | 13 #include "SkTArray.h" |
15 | 14 |
16 class SkMatrix; | 15 class SkMatrix; |
17 | 16 |
18 /** | 17 /** |
19 * Utilities for evaluating paths. | 18 * Utilities for evaluating paths. |
20 */ | 19 */ |
21 namespace GrPathUtils { | 20 namespace GrPathUtils { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // K = (klm[0], klm[1], klm[2]) | 163 // K = (klm[0], klm[1], klm[2]) |
165 // L = (klm[3], klm[4], klm[5]) | 164 // L = (klm[3], klm[4], klm[5]) |
166 // M = (klm[6], klm[7], klm[8]) | 165 // M = (klm[6], klm[7], klm[8]) |
167 // | 166 // |
168 // Notice that the klm lines are calculated in the same space as the input c
ontrol points. | 167 // Notice that the klm lines are calculated in the same space as the input c
ontrol points. |
169 // If you transform the points the lines will also need to be transformed. T
his can be done | 168 // If you transform the points the lines will also need to be transformed. T
his can be done |
170 // by mapping the lines with the inverse-transpose of the matrix used to map
the points. | 169 // by mapping the lines with the inverse-transpose of the matrix used to map
the points. |
171 void getCubicKLM(const SkPoint p[4], SkScalar klm[9]); | 170 void getCubicKLM(const SkPoint p[4], SkScalar klm[9]); |
172 }; | 171 }; |
173 #endif | 172 #endif |
OLD | NEW |