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>
This commit is contained in:
parent
a8e40de7a2
commit
cfee6ecf5d
@ -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 ##
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user