Skip to content

Commit de24db8

Browse files
zcorpansvgeesus
authored andcommitted
Editorial: define isIdentity in terms of internal variables; rename 'is2D' internal variable to 'is 2D'
1 parent 00c4c1e commit de24db8

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

geometry/Overview.bs

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ element</dfn>, <dfn dfn-for=matrix>m22 element</dfn>, <dfn dfn-for=matrix>m23 el
799799
dfn-for=matrix>m24 element</dfn>, <dfn dfn-for=matrix>m31 element</dfn>, <dfn dfn-for=matrix>m32
800800
element</dfn>, <dfn dfn-for=matrix>m33 element</dfn>, <dfn dfn-for=matrix>m34 element</dfn>, <dfn
801801
dfn-for=matrix>m41 element</dfn>, <dfn dfn-for=matrix>m42 element</dfn>, <dfn dfn-for=matrix>m43
802-
element</dfn>, <dfn dfn-for=matrix>m44 element</dfn> and <a for=matrix>is2D</a>.
802+
element</dfn>, <dfn dfn-for=matrix>m44 element</dfn> and <a for=matrix>is 2D</a>.
803803
{{DOMMatrixReadOnly}} as well as the inheriting interface {{DOMMatrix}} must be able to access and
804804
set the value of these variables.
805805

@@ -906,7 +906,7 @@ they have identical IEEE 754 double-precision bit patterns.
906906

907907
<li><p>Set <a for=matrix>m33 element</a> and <a for=matrix>m44 element</a> to ''1''.
908908

909-
<li><p>Set <a for=matrix>is2D</a> to <code>true</code>.
909+
<li><p>Set <a for=matrix>is 2D</a> to <code>true</code>.
910910

911911
<li><p>Return <var>matrix</var>
912912
</ol>
@@ -920,7 +920,7 @@ they have identical IEEE 754 double-precision bit patterns.
920920
<li><p>Set <a for=matrix>m11 element</a> to <a for=matrix>m44 element</a> to the values of
921921
<var>init</var> in column-major order.
922922

923-
<li><p>Set <a for=matrix>is2D</a> to <code>false</code>.
923+
<li><p>Set <a for=matrix>is 2D</a> to <code>false</code>.
924924

925925
<li><p>Return <var>matrix</var>
926926
</ol>
@@ -1086,7 +1086,7 @@ method on {{DOMMatrix}} must follow these steps:
10861086
{{DOMMatrixReadOnly/m23}}, {{DOMMatrixReadOnly/m43}}, {{DOMMatrixReadOnly/m14}},
10871087
{{DOMMatrixReadOnly/m24}}, {{DOMMatrixReadOnly/m34}} are set to something else than ''0'' or
10881088
{{DOMMatrixReadOnly/m33}}, {{DOMMatrixReadOnly/m44}} are set to something else than ''1'' set <a
1089-
for=matrix>is2D</a> to <code>false</code>.
1089+
for=matrix>is 2D</a> to <code>false</code>.
10901090

10911091
<div dfn-type=attribute dfn-for="DOMMatrixReadOnly, DOMMatrix">
10921092
<p>The <dfn><code>m11</code></dfn> attribute, on getting, must return the <a for=matrix>m11
@@ -1190,19 +1190,19 @@ for=matrix>is2D</a> to <code>false</code>.
11901190
<p>The following attributes provide status information about {{DOMMatrixReadOnly}}.
11911191

11921192
<div dfn-type=attribute dfn-for=DOMMatrixReadOnly>
1193-
<p>The <dfn><code>is2D</code></dfn> attribute must return the value of <a for=matrix>is2D</a>.
1194-
1195-
<p>The <dfn><code>isIdentity</code></dfn> attribute must return <code>true</code> if
1196-
{{DOMMatrixReadOnly/m12}}, {{DOMMatrixReadOnly/m13}}, {{DOMMatrixReadOnly/m14}},
1197-
{{DOMMatrixReadOnly/m21}}, {{DOMMatrixReadOnly/m23}}, {{DOMMatrixReadOnly/m24}},
1198-
{{DOMMatrixReadOnly/m31}}, {{DOMMatrixReadOnly/m32}}, {{DOMMatrixReadOnly/m34}},
1199-
{{DOMMatrixReadOnly/m41}}, {{DOMMatrixReadOnly/m42}}, {{DOMMatrixReadOnly/m43}} are ''0'' and
1200-
{{DOMMatrixReadOnly/m11}}, {{DOMMatrixReadOnly/m22}}, {{DOMMatrixReadOnly/m33}},
1201-
{{DOMMatrixReadOnly/m44}} are ''1''. Otherwise it must return <code>false</code>.
1193+
<p>The <dfn><code>is2D</code></dfn> attribute must return the value of <a for=matrix>is 2D</a>.
1194+
1195+
<p>The <dfn><code>isIdentity</code></dfn> attribute must return <code>true</code> if <a
1196+
for=matrix>m12 element</a>, <a for=matrix>m13 element</a>, <a for=matrix>m14 element</a>, <a
1197+
for=matrix>m21 element</a>, <a for=matrix>m23 element</a>, <a for=matrix>m24 element</a>, <a
1198+
for=matrix>m31 element</a>, <a for=matrix>m32 element</a>, <a for=matrix>m34 element</a>, <a
1199+
for=matrix>m41 element</a>, <a for=matrix>m42 element</a>, <a for=matrix>m43 element</a> are ''0''
1200+
and <a for=matrix>m11 element</a>, <a for=matrix>m22 element</a>, <a for=matrix>m33 element</a>, <a
1201+
for=matrix>m44 element</a> are ''1''. Otherwise it must return <code>false</code>.
12021202
</div>
12031203

12041204
<p>Every {{DOMMatrixReadOnly}} object must be flagged with a boolean <dfn for=matrix
1205-
export>is2D</dfn>. This flag indicates that:
1205+
export>is 2D</dfn>. This flag indicates that:
12061206

12071207
<ol>
12081208
<li><p>The current matrix was initialized as a 2D matrix. See individual <a
@@ -1211,10 +1211,10 @@ export>is2D</dfn>. This flag indicates that:
12111211
<li><p>Only 2D transformation operations were applied. Each <a
12121212
href="#mutable-transformation-methods">mutable</a> or <a
12131213
href="#immutable-transformation-methods">immutable transformation method</a> defines if <a
1214-
for=matrix>is2D</a> must be set to <code>false</code>.
1214+
for=matrix>is 2D</a> must be set to <code>false</code>.
12151215
</ol>
12161216

1217-
<p class=note><a for=matrix>is2D</a> can never be set to <code>true</code> when it was set to
1217+
<p class=note><a for=matrix>Is 2D</a> can never be set to <code>true</code> when it was set to
12181218
<code>false</code> before on a {{DOMMatrix}} object with the exception of calling the
12191219
{{DOMMatrix/setMatrixValue()}} method.
12201220

@@ -1420,7 +1420,7 @@ export>is2D</dfn>. This flag indicates that:
14201420
<dt><dfn>stringifier()</dfn>
14211421
<dd>
14221422
<dl class=switch>
1423-
<dt>If <a for=matrix>is2D</a> is <code>true</code>
1423+
<dt>If <a for=matrix>is 2D</a> is <code>true</code>
14241424
<dd><p>Return a DOMString in the form of a CSS Transforms <<matrix()>> function where <var
14251425
ignore>a</var> is {{DOMMatrixReadOnly/a}} attribute, <var ignore>b</var> is
14261426
{{DOMMatrixReadOnly/b}} attribute, <var ignore>c</var> is {{DOMMatrixReadOnly/c}} attribute,
@@ -1503,8 +1503,8 @@ user agents.
15031503

15041504
<li><p>The <var>otherObject</var> matrix gets post-multiplied to the current matrix.
15051505

1506-
<li><p>If <a for=matrix>is2D</a> of <var>otherObject</var> is <code>false</code>, set <a
1507-
for=matrix>is2D</a> of the current matrix to <code>false</code>.
1506+
<li><p>If <a for=matrix>is 2D</a> of <var>otherObject</var> is <code>false</code>, set <a
1507+
for=matrix>is 2D</a> of the current matrix to <code>false</code>.
15081508

15091509
<li><p>Return the current matrix.
15101510
</ol>
@@ -1517,8 +1517,8 @@ user agents.
15171517

15181518
<li><p>The <var>otherObject</var> matrix gets pre-multiplied to the current matrix.
15191519

1520-
<li><p>If <a for=matrix>is2D</a> of <var>otherObject</var> is <code>false</code>, set <a
1521-
for=matrix>is2D</a> of the current matrix to <code>false</code>.
1520+
<li><p>If <a for=matrix>is 2D</a> of <var>otherObject</var> is <code>false</code>, set <a
1521+
for=matrix>is 2D</a> of the current matrix to <code>false</code>.
15221522

15231523
<li><p>Return the current matrix.
15241524
</ol>
@@ -1530,7 +1530,7 @@ user agents.
15301530
matrix is <a href="https://drafts.csswg.org/css-transforms-1/#Translate3dDefined">described</a>
15311531
in CSS Transforms. [[!CSS3-TRANSFORMS]]
15321532

1533-
<li><p>If <var>tz</var> is specified and not ''0'', set <a for=matrix>is2D</a> of the current
1533+
<li><p>If <var>tz</var> is specified and not ''0'', set <a for=matrix>is 2D</a> of the current
15341534
matrix to <code>false</code>.
15351535

15361536
<li><p>Return the current matrix.
@@ -1556,7 +1556,7 @@ user agents.
15561556
arguments <var>originX</var>, <var>originY</var>, <var>originZ</var>.
15571557

15581558
<li><p>If <var>scaleZ</var> is not ''1'' or <var>originZ</var> is not ''0'', set <a
1559-
for=matrix>is2D</a> of the current matrix to <code>false</code>.
1559+
for=matrix>is 2D</a> of the current matrix to <code>false</code>.
15601560

15611561
<li><p>Return the current matrix.
15621562
</ol>
@@ -1577,7 +1577,7 @@ user agents.
15771577
<li><p>Apply a {{DOMMatrix/translateSelf()}} transformation to the current matrix with the
15781578
arguments -<var>originX</var>, -<var>originY</var>, -<var>originZ</var>.
15791579

1580-
<li><p>If <var>scale</var> is not ''1'', set <a for=matrix>is2D</a> of the current matrix to
1580+
<li><p>If <var>scale</var> is not ''1'', set <a for=matrix>is 2D</a> of the current matrix to
15811581
<code>false</code>.
15821582

15831583
<li><p>Return the current matrix.
@@ -1593,7 +1593,7 @@ user agents.
15931593

15941594
<li><p>If <var>rotZ</var> is still missing, set <var>rotZ</var> to zero.
15951595

1596-
<li><p>If <var>rotX</var> or <var>rotY</var> are non-zero, set <a for=matrix>is2D</a> of the
1596+
<li><p>If <var>rotX</var> or <var>rotY</var> are non-zero, set <a for=matrix>is 2D</a> of the
15971597
current matrix to <code>false</code>.
15981598

15991599
<li><p>Post-multiply a rotation transformation on the current matrix around the vector 0, 0, 1 by
@@ -1637,7 +1637,7 @@ user agents.
16371637
href="https://drafts.csswg.org/css-transforms-1/#Rotate3dDefined">described</a> in CSS Transforms
16381638
with <var>alpha</var> = <var>angle</var> in degrees. [[!CSS3-TRANSFORMS]]
16391639

1640-
<li><p>If <var>x</var> or <var>y</var> are not ''0'', set <a for=matrix>is2D</a> of the current
1640+
<li><p>If <var>x</var> or <var>y</var> are not ''0'', set <a for=matrix>is 2D</a> of the current
16411641
matrix to <code>false</code>.
16421642

16431643
<li><p>Return the current matrix.
@@ -1671,7 +1671,7 @@ user agents.
16711671
<li><p>Invert the current matrix.
16721672

16731673
<li><p>If the current matrix is not invertible set all attributes to ''NaN'' and set <a
1674-
for=matrix>is2D</a> to <code>false</code>.
1674+
for=matrix>is 2D</a> to <code>false</code>.
16751675

16761676
<li><p>Return the current matrix.
16771677
</ol>
@@ -1693,9 +1693,9 @@ user agents.
16931693
<li><p>If <var>parsedValue</var> is ''transform/none'', set <var>parsedValue</var> to a
16941694
<<transform-list>> containing a single identity matrix
16951695

1696-
<li><p>Set <a for=matrix>is2D</a> to <code>false</code> if the <<transform-list>> consists of any
1696+
<li><p>Set <a for=matrix>is 2D</a> to <code>false</code> if the <<transform-list>> consists of any
16971697
<a href="https://drafts.csswg.org/css-transforms-1/#three-d-transform-functions">3D Transform
1698-
functions</a>. Otherwise set <a for=matrix>is2D</a> to <code>true</code>.
1698+
functions</a>. Otherwise set <a for=matrix>is 2D</a> to <code>true</code>.
16991699

17001700
<li><p>Transform all <<transform-function>>s to 4x4 matrices by following the “<a
17011701
href="https://drafts.csswg.org/css-transforms-1/#mathematical-description">Mathematical

0 commit comments

Comments
 (0)