You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: geometry/Overview.bs
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -107,8 +107,19 @@ The <dfn dfn-type=constructor dfn-for=DOMPointReadOnly><code>DOMPointReadOnly(<v
107
107
<li>Return <var>point</var>.</li>
108
108
</ol>
109
109
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:
112
123
113
124
<ol class=algorithm>
114
125
<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>)</
317
328
318
329
The <dfn method lt=fromQuad() dfn-for=DOMQuad><code>fromQuad(<var>other</var>)</code></dfn> static method on {{DOMQuad}} must run the following steps:
319
330
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.
324
335
1. Return a new {{DOMQuad}} with
325
336
{{DOMQuad/p1}} set to <var>point 1</var>,
326
337
{{DOMQuad/p2}} set to <var>point 2</var>,
@@ -960,9 +971,9 @@ The following methods do not modify the current matrix.
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>.
964
975
<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>
0 commit comments