aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/SkMatrix_Reference.bmh
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-01-05 13:12:14 -0500
committerGravatar Brian Salomon <bsalomon@google.com>2018-01-05 18:45:08 +0000
commit262cd409663eb24ca0ecbcd6091d59894d42a030 (patch)
tree090fa999df36c2bc12043ecf656d1f1d3230a24b /docs/SkMatrix_Reference.bmh
parent5ef4ebf3c464210ab0eec84e62438d6135f44f8a (diff)
Update SkMatrix_Reference.bmh to reflect mapPointsWithStride removal
Change-Id: I6a932e011a0d2bb0ddad120b824499d6624418c8 Reviewed-on: https://skia-review.googlesource.com/91443 Reviewed-by: Cary Clark <caryclark@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'docs/SkMatrix_Reference.bmh')
-rw-r--r--docs/SkMatrix_Reference.bmh53
1 files changed, 0 insertions, 53 deletions
diff --git a/docs/SkMatrix_Reference.bmh b/docs/SkMatrix_Reference.bmh
index 81e95a2d0a..5828790e61 100644
--- a/docs/SkMatrix_Reference.bmh
+++ b/docs/SkMatrix_Reference.bmh
@@ -3312,59 +3312,6 @@ Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , -------
# ------------------------------------------------------------------------------
-#Method void mapPointsWithStride(SkPoint dst[], const SkPoint src[], size_t stride, int count) const
-
-Maps src Point array of length count to dst Point array, skipping stride bytes
-to advance from one Point to the next.
-Points are mapped by multiplying each Point by Matrix. Given:
-
-#Code
-#Literal
- | A B C | | x |
-Matrix = | D E F |, src = | y |
- | G H I | | 1 |
-##
-
-each resulting dst Point is computed as:
-
-#Code
-#Literal
- |A B C| |x| Ax+By+C Dx+Ey+F
-Matrix * pt = |D E F| |y| = |Ax+By+C Dx+Ey+F Gx+Hy+I| = ------- , -------
- |G H I| |1| Gx+Hy+I Gx+Hy+I
-##
-
-#Param dst storage for mapped Points ##
-#Param src Points to transform ##
-#Param stride size of record starting with Point, in bytes ##
-#Param count number of Points to transform ##
-
-#Example
- struct PointZ {
- SkPoint fPt;
- const SkPoint fStationary;
- };
- const PointZ src[] = {{{40, 70}, {40, 70}}, {{180, 70}, {180, 70}}, {{180, 220}, {180, 220}},
- {{40, 220}, {40, 220}}};
- PointZ dst[] = {{{0, 0}, {60, 80}}, {{0, 0}, {150, 40}}, {{0, 0}, {100, 240}},
- {{0, 0}, {10, 250}}};
- constexpr int count = SK_ARRAY_COUNT(src);
- SkPaint paint;
- paint.setARGB(77, 23, 99, 154);
- for (int i = 0; i < 5; ++i) {
- SkMatrix matrix;
- matrix.setRotate(10 * i, 128, 128);
- matrix.mapPointsWithStride(&dst[0].fPt, &src[0].fPt, sizeof(PointZ), count);
- canvas->drawPoints(SkCanvas::kPolygon_PointMode, count * 2, &dst[0].fPt, paint);
- }
-##
-
-#SeeAlso mapPoints mapXY mapHomogeneousPoints mapVectors
-
-##
-
-# ------------------------------------------------------------------------------
-
#Method void mapHomogeneousPoints(SkPoint3 dst[], const SkPoint3 src[], int count) const
Maps src Point3 array of length count to dst Point3 array, which must of length count or