|
@@ -129,6 +129,45 @@ zAxis = (c, f, i)
|
|
|
|
|
|
</p>
|
|
|
|
|
|
+ <h3>[method:this makeRotation]( [param:Float theta] )</h3>
|
|
|
+ <p>
|
|
|
+ [page:Float theta] — Rotation angle in radians. Positive values rotate counterclockwise.<br /><br />
|
|
|
+
|
|
|
+ Sets this matrix as a 2D rotational transformation by [page:Float theta] radians.
|
|
|
+ The resulting matrix will be:
|
|
|
+ <code>
|
|
|
+cos(θ) -sin(θ) 0
|
|
|
+sin(θ) cos(θ) 0
|
|
|
+0 0 1
|
|
|
+ </code>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:this makeScale]( [param:Float x], [param:Float y] )</h3>
|
|
|
+ <p>
|
|
|
+ [page:Float x] - the amount to scale in the X axis.<br />
|
|
|
+ [page:Float y] - the amount to scale in the Y axis.<br />
|
|
|
+
|
|
|
+ Sets this matrix as a 2D scale transform:
|
|
|
+ <code>
|
|
|
+x, 0, 0,
|
|
|
+0, y, 0,
|
|
|
+0, 0, 1
|
|
|
+ </code>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <h3>[method:this makeTranslation]( [param:Float x], [param:Float y] )</h3>
|
|
|
+ <p>
|
|
|
+ [page:Float x] - the amount to translate in the X axis.<br />
|
|
|
+ [page:Float y] - the amount to translate in the Y axis.<br />
|
|
|
+
|
|
|
+ Sets this matrix as a 2D translation transform:
|
|
|
+ <code>
|
|
|
+1, 0, x,
|
|
|
+0, 1, y,
|
|
|
+0, 0, 1
|
|
|
+ </code>
|
|
|
+ </p>
|
|
|
+
|
|
|
<h3>[method:this multiply]( [param:Matrix3 m] )</h3>
|
|
|
<p>Post-moltiplica questa matrice per [page:Matrix3 m].</p>
|
|
|
|
|
@@ -169,7 +208,7 @@ zAxis = (c, f, i)
|
|
|
[page:Float ty] - offset y<br />
|
|
|
[page:Float sx] - repeat x<br />
|
|
|
[page:Float sy] - repeat y<br />
|
|
|
- [page:Float rotation] - rotazione (in radianti)<br />
|
|
|
+ [page:Float rotation] - rotazione, in radianti. Positive values rotate counterclockwise<br />
|
|
|
[page:Float cx] - centro x di rotazione<br />
|
|
|
[page:Float cy] - centro y di rotazione<br /><br />
|
|
|
|