diff options
author | Cary Clark <caryclark@skia.org> | 2017-10-26 10:34:05 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-26 16:47:07 +0000 |
commit | cfee6ecf5d4812421aead943760832c6daf8e602 (patch) | |
tree | b4c50832297fce1e25ff97243bdb9e064d9e511a | |
parent | a8e40de7a266dc82f60684c262b2b3234a37a510 (diff) |
fix matrix order bug
corrected matrix illustration for SkMatrix::MakeTrans
Docs-Preview: https://skia.org/?cl=64120
Bug: skia:6898
Change-Id: Iec8ceae6893598919349b24197f30727be892a37
Reviewed-on: https://skia-review.googlesource.com/64120
Commit-Queue: Cary Clark <caryclark@skia.org>
Reviewed-by: Cary Clark <caryclark@skia.org>
-rw-r--r-- | docs/SkMatrix_Reference.bmh | 6 | ||||
-rw-r--r-- | site/user/api/SkMatrix_Reference.md | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/SkMatrix_Reference.bmh b/docs/SkMatrix_Reference.bmh index f91e0096b4..e0d3987d17 100644 --- a/docs/SkMatrix_Reference.bmh +++ b/docs/SkMatrix_Reference.bmh @@ -196,9 +196,9 @@ Sets Matrix to translate by (dx, dy). Returned matrix is: #Code #Literal -| 1 0 0 | -| 0 1 0 | -| dx dy 1 | +| 1 0 dx | +| 0 1 dy | +| 0 0 1 | ## #Param dx horizontal translation ## diff --git a/site/user/api/SkMatrix_Reference.md b/site/user/api/SkMatrix_Reference.md index 46cca59545..2fd97b0976 100644 --- a/site/user/api/SkMatrix_Reference.md +++ b/site/user/api/SkMatrix_Reference.md @@ -200,9 +200,9 @@ static SkMatrix SK_WARN_UNUSED_RESULT MakeTrans(SkScalar dx, SkScalar dy) Sets <a href="#Matrix">Matrix</a> to translate by (<a href="#SkMatrix_MakeTrans_dx">dx</a>, <a href="#SkMatrix_MakeTrans_dy">dy</a>). Returned matrix is: <pre style="padding: 1em 1em 1em 1em;width: 50em; background-color: #f0f0f0"> -| 1 0 0 | -| 0 1 0 | -| dx dy 1 |</pre> +| 1 0 dx | +| 0 1 dy | +| 0 0 1 |</pre> ### Parameters |