OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 SkPoint_DEFINED | 8 #ifndef SkPoint_DEFINED |
9 #define SkPoint_DEFINED | 9 #define SkPoint_DEFINED |
10 | 10 |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 } | 542 } |
543 | 543 |
544 /** | 544 /** |
545 * cast-safe way to treat the point as an array of (2) SkScalars. | 545 * cast-safe way to treat the point as an array of (2) SkScalars. |
546 */ | 546 */ |
547 const SkScalar* asScalars() const { return &fX; } | 547 const SkScalar* asScalars() const { return &fX; } |
548 }; | 548 }; |
549 | 549 |
550 typedef SkPoint SkVector; | 550 typedef SkPoint SkVector; |
551 | 551 |
| 552 static inline bool SkPointsAreFinite(const SkPoint array[], int count) { |
| 553 return SkScalarsAreFinite(&array[0].fX, count << 1); |
| 554 } |
| 555 |
552 #endif | 556 #endif |
OLD | NEW |