| 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 |
| 8 #ifndef SkLineParameters_DEFINED |
| 9 #define SkLineParameters_DEFINED |
| 10 |
| 7 #include "SkPathOpsCubic.h" | 11 #include "SkPathOpsCubic.h" |
| 8 #include "SkPathOpsLine.h" | 12 #include "SkPathOpsLine.h" |
| 9 #include "SkPathOpsQuad.h" | 13 #include "SkPathOpsQuad.h" |
| 10 | 14 |
| 11 // Sources | 15 // Sources |
| 12 // computer-aided design - volume 22 number 9 november 1990 pp 538 - 549 | 16 // computer-aided design - volume 22 number 9 november 1990 pp 538 - 549 |
| 13 // online at http://cagd.cs.byu.edu/~tom/papers/bezclip.pdf | 17 // online at http://cagd.cs.byu.edu/~tom/papers/bezclip.pdf |
| 14 | 18 |
| 15 // This turns a line segment into a parameterized line, of the form | 19 // This turns a line segment into a parameterized line, of the form |
| 16 // ax + by + c = 0 | 20 // ax + by + c = 0 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 170 |
| 167 double dy() const { | 171 double dy() const { |
| 168 return -fA; | 172 return -fA; |
| 169 } | 173 } |
| 170 | 174 |
| 171 private: | 175 private: |
| 172 double fA; | 176 double fA; |
| 173 double fB; | 177 double fB; |
| 174 double fC; | 178 double fC; |
| 175 }; | 179 }; |
| 180 |
| 181 #endif |
| OLD | NEW |