Skip to content

Commit aff4cbf

Browse files
zcorpansvgeesus
authored andcommitted
Editorial: Define an entry point for the fromMatrix() algorithm
1 parent 3e6d1f3 commit aff4cbf

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

geometry/Overview.bs

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ the <dfn method dfn-for=DOMPoint id=dom-dompoint-frompoint><code>fromPoint(<var>
130130

131131
<ol>
132132
<li>Create a new <a interface>DOMPoint</a> <var>point</var> initialized to <a attribute for=DOMPoint>x</a>, <a attribute for=DOMPoint>y</a>, <a attribute for=DOMPoint>z</a> and <a attribute for=DOMPoint>w</a> of the current point.</li>
133-
<li>Let <var>matrix object</var> be the result of calling {{DOMMatrix/fromMatrix()}} with <var>matrix</var> as the argument.
133+
<li>Let <var>matrix object</var> be the result of invoking <a>create a <code>DOMMatrix</code> from the dictionary</a> <var>matrix</var>.
134134
<li><i>Post-multiply</i> <var>point</var> with <var>matrix object</var>.</li>
135135
<li>Return <var>point</var>.</li>
136136
</ol>
@@ -707,8 +707,19 @@ when invoked with a sequence argument, must run the following steps:
707707
<dd>Throw a <code>TypeError</code> exception.</dd>
708708
</dl>
709709

710-
The <dfn method lt=fromMatrix() dfn-for=DOMMatrixReadOnly id=dom-dommatrixreadonly-frommatrix><code>fromMatrix(<var>other</var>)</code></dfn> static method on {{DOMMatrixReadOnly}} and
711-
the <dfn method lt=fromMatrix() dfn-for=DOMMatrix id=dom-dommatrix-frommatrix><code>fromMatrix(<var>other</var>)</code></dfn> static method on {{DOMMatrix}} must follow these steps:
710+
The <dfn method lt=fromMatrix() dfn-for=DOMMatrixReadOnly
711+
id=dom-dommatrixreadonly-frommatrix><code>fromMatrix(<var>other</var>)</code></dfn> static method on
712+
{{DOMMatrixReadOnly}} must <a>create a <code>DOMMatrixReadOnly</code> from the dictionary</a>
713+
<var>other</var>.
714+
715+
The <dfn method lt=fromMatrix() dfn-for=DOMMatrix
716+
id=dom-dommatrix-frommatrix><code>fromMatrix(<var>other</var>)</code></dfn> static method on
717+
{{DOMMatrix}} must <a>create a <code>DOMMatrix</code> from the dictionary</a> <var>other</var>.
718+
719+
To <dfn lt="create a DOMMatrixReadOnly from the dictionary">create a <code>DOMMatrixReadOnly</code>
720+
from a dictionary</dfn> <var>other</var> or to <dfn lt="create a DOMMatrix from the
721+
dictionary">create a <code>DOMMatrix</code> from a dictionary</dfn> <var>other</var>, follow these
722+
steps:
712723

713724
<ol>
714725
<li><a>Validate and fixup</a> <var>other</var>.</li>
@@ -1016,18 +1027,18 @@ Note: Authors who use chained method calls are recommended to use mutable transf
10161027
<dt><dfn>multiplySelf(<var>other</var>)</dfn></dt>
10171028
<dd>
10181029
<ol>
1019-
<li>Let <var>other object</var> be the result of invoking {{DOMMatrix/fromMatrix()}} with <var>other</var> as the argument.</li>
1020-
<li>The <em>other object</em> matrix gets post-multiplied to the current matrix.</li>
1021-
<li>If <a>is2D</a> of <em>other object</em> is <code>false</code>, set <a>is2D</a> of the current matrix to <code>false</code>.</li>
1030+
<li>Let <var>other object</var> be the result of invoking <a>create a <code>DOMMatrix</code> from the dictionary</a> <var>other</var>.</li>
1031+
<li>The <var>other object</var> matrix gets post-multiplied to the current matrix.</li>
1032+
<li>If <a>is2D</a> of <var>other object</var> is <code>false</code>, set <a>is2D</a> of the current matrix to <code>false</code>.</li>
10221033
<li>Return the current matrix.</li>
10231034
</ol>
10241035
</dd>
10251036
<dt><dfn>preMultiplySelf(<var>other</var>)</dfn></dt>
10261037
<dd>
10271038
<ol>
1028-
<li>Let <var>other object</var> be the result of invoking {{DOMMatrix/fromMatrix()}} with <var>other</var> as the argument.</li>
1029-
<li>The <em>other object</em> matrix gets pre-multiplied to the current matrix.</li>
1030-
<li>If <a>is2D</a> of <em>other object</em> is <code>false</code>, set <a>is2D</a> of the current matrix to <code>false</code>.</li>
1039+
<li>Let <var>other object</var> be the result of invoking <a>create a <code>DOMMatrix</code> from the dictionary</a> <var>other</var>.</li>
1040+
<li>The <var>other object</var> matrix gets pre-multiplied to the current matrix.</li>
1041+
<li>If <a>is2D</a> of <var>other object</var> is <code>false</code>, set <a>is2D</a> of the current matrix to <code>false</code>.</li>
10311042
<li>Return the current matrix.</li>
10321043
</ol>
10331044
</dd>

0 commit comments

Comments
 (0)