OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkMatrix_DEFINED | 10 #ifndef SkMatrix_DEFINED |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
572 | 572 |
573 /** | 573 /** |
574 * Calculates the maximum scale factor of the matrix. If the matrix has | 574 * Calculates the maximum scale factor of the matrix. If the matrix has |
575 * perspective -1 is returned. | 575 * perspective -1 is returned. |
576 * | 576 * |
577 * @return maximum scale factor | 577 * @return maximum scale factor |
578 */ | 578 */ |
579 SkScalar getMaxScale() const; | 579 SkScalar getMaxScale() const; |
580 | 580 |
581 /** | 581 /** |
582 * Gets both the min and max scale factors. The min scale factor is scaleFac tors[0] and the max | |
583 * is scaleFactors[1]. If the matrix has perspective -1 will be returned and scaleFactors will | |
reed1
2014/05/20 15:17:55
-1 --> false
bsalomon
2014/05/20 15:32:42
Done.
| |
584 * be unchanged. | |
585 */ | |
586 bool getScaleFactors(SkScalar scaleFactors[2]) const; | |
reed1
2014/05/20 15:17:55
1. do we need this entrypoint and the other two?
2
bsalomon
2014/05/20 15:32:42
Most call sites only require 1 of the 2 and comput
| |
587 | |
588 /** | |
582 * Return a reference to a const identity matrix | 589 * Return a reference to a const identity matrix |
583 */ | 590 */ |
584 static const SkMatrix& I(); | 591 static const SkMatrix& I(); |
585 | 592 |
586 /** | 593 /** |
587 * Return a reference to a const matrix that is "invalid", one that could | 594 * Return a reference to a const matrix that is "invalid", one that could |
588 * never be used. | 595 * never be used. |
589 */ | 596 */ |
590 static const SkMatrix& InvalidMatrix(); | 597 static const SkMatrix& InvalidMatrix(); |
591 | 598 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
703 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], | 710 static void RotTrans_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], |
704 int count); | 711 int count); |
705 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); | 712 static void Persp_pts(const SkMatrix&, SkPoint dst[], const SkPoint[], int); |
706 | 713 |
707 static const MapPtsProc gMapPtsProcs[]; | 714 static const MapPtsProc gMapPtsProcs[]; |
708 | 715 |
709 friend class SkPerspIter; | 716 friend class SkPerspIter; |
710 }; | 717 }; |
711 | 718 |
712 #endif | 719 #endif |
OLD | NEW |