Skip to content

Commit 2548a87

Browse files
zcorpansvgeesus
authored andcommitted
Editorial: Define an entry point for the fromPoint() algorithm
1 parent aff4cbf commit 2548a87

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

geometry/Overview.bs

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,19 @@ The <dfn dfn-type=constructor dfn-for=DOMPointReadOnly><code>DOMPointReadOnly(<v
107107
<li>Return <var>point</var>.</li>
108108
</ol>
109109

110-
The <dfn method dfn-for=DOMPointReadOnly id=dom-dompointreadonly-frompoint><code>fromPoint(<var>other</var>)</code></dfn> static method on {{DOMPointReadOnly}} and
111-
the <dfn method dfn-for=DOMPoint id=dom-dompoint-frompoint><code>fromPoint(<var>other</var>)</code></dfn> static method on {{DOMPoint}} must run the following steps:
110+
The <dfn method dfn-for=DOMPointReadOnly
111+
id=dom-dompointreadonly-frompoint><code>fromPoint(<var>other</var>)</code></dfn> static method on
112+
{{DOMPointReadOnly}} must <a>create a <code>DOMPointReadOnly</code> from the dictionary</a>
113+
<var>other</var>.
114+
115+
The <dfn method dfn-for=DOMPoint
116+
id=dom-dompoint-frompoint><code>fromPoint(<var>other</var>)</code></dfn> static method on
117+
{{DOMPoint}} <a>create a <code>DOMPoint</code> from the dictionary</a> <var>other</var>.
118+
119+
To <dfn lt="create a DOMPointReadOnly from the dictionary">create a <code>DOMPointReadOnly</code>
120+
from a dictionary</dfn> <var>other</var>, or to <dfn lt="create a DOMPoint from the
121+
dictionary">create a <code>DOMPoint</code> from a dictionary</dfn> <var>other</var>, follow these
122+
steps:
112123

113124
<ol class=algorithm>
114125
<li>Let <var>point</var> be a new {{DOMPointReadOnly}} or {{DOMPoint}} as appropriate.
@@ -317,10 +328,10 @@ The <dfn method lt=fromRect() dfn-for=DOMQuad><code>fromRect(<var>other</var>)</
317328

318329
The <dfn method lt=fromQuad() dfn-for=DOMQuad><code>fromQuad(<var>other</var>)</code></dfn> static method on {{DOMQuad}} must run the following steps:
319330

320-
1. Let <var>point 1</var> be the result of invoking {{DOMPoint/fromPoint()}} static method on {{DOMPoint}} with the {{DOMQuadInit/p1}} dictionary member of <var>other</var> as argument, if it exists.
321-
1. Let <var>point 2</var> be the result of invoking {{DOMPoint/fromPoint()}} static method on {{DOMPoint}} with the {{DOMQuadInit/p2}} dictionary member of <var>other</var> as argument, if it exists.
322-
1. Let <var>point 3</var> be the result of invoking {{DOMPoint/fromPoint()}} static method on {{DOMPoint}} with the {{DOMQuadInit/p3}} dictionary member of <var>other</var> as argument, if it exists.
323-
1. Let <var>point 4</var> be the result of invoking {{DOMPoint/fromPoint()}} static method on {{DOMPoint}} with the {{DOMQuadInit/p4}} dictionary member of <var>other</var> as argument, if it exists.
331+
1. Let <var>point 1</var> be the result of invoking <a>create a <code>DOMPoint</code> from the dictionary</a> {{DOMQuadInit/p1}} dictionary member of <var>other</var>, if it exists.
332+
1. Let <var>point 2</var> be the result of invoking <a>create a <code>DOMPoint</code> from the dictionary</a> {{DOMQuadInit/p2}} dictionary member of <var>other</var>, if it exists.
333+
1. Let <var>point 3</var> be the result of invoking <a>create a <code>DOMPoint</code> from the dictionary</a> {{DOMQuadInit/p3}} dictionary member of <var>other</var>, if it exists.
334+
1. Let <var>point 4</var> be the result of invoking <a>create a <code>DOMPoint</code> from the dictionary</a> {{DOMQuadInit/p4}} dictionary member of <var>other</var>, if it exists.
324335
1. Return a new {{DOMQuad}} with
325336
{{DOMQuad/p1}} set to <var>point 1</var>,
326337
{{DOMQuad/p2}} set to <var>point 2</var>,
@@ -960,9 +971,9 @@ The following methods do not modify the current matrix.
960971
<dl dfn-type=method dfn-for=DOMMatrixReadOnly>
961972
<dt><dfn>transformPoint(<var>point</var>)</dfn></dt>
962973
<dd>
963-
Let <var>point object</var> be the result of invoking {{DOMPointReadOnly/fromPoint()}} with <var>point</var> as the argument.
974+
Let <var>point object</var> be the result of invoking <a>create a <code>DOMPoint</code> from the dictionary</a> <var>point</var>.
964975
<var>Point object</var> is post-multiplied to the current matrix and returns the resulting point. The passed argument does not get modified.
965-
<p class='note'>Note: Even if <a attribute>is2D</a> of the current matrix may return <code>true</code>, a 4x4 matrix multiplication must be performed if the <a attribute>z</a> attribute of <var>point</var> is not ''0'' or the <a attribute>w</a> attribute of <var>point</var> is not ''1''.</p>
976+
<p class='note'>Note: Even if <a attribute>is2D</a> of the current matrix returns <code>true</code>, a 4x4 matrix multiplication will be performed if the <a attribute>z</a> attribute of <var>point</var> is not ''0'' or the <a attribute>w</a> attribute of <var>point</var> is not ''1''.</p>
966977
</dd>
967978
<dt><dfn>toFloat32Array()</dfn></dt>
968979
<dd>

0 commit comments

Comments
 (0)