Skip to content

Commit

Permalink
Merge pull request w3c#18 from pozdnyakov/reference_to_motion_sensors
Browse files Browse the repository at this point in the history
Reference to Motion Sensors explainer
  • Loading branch information
Mikhail Pozdnyakov committed Mar 16, 2017
2 parents 36bbfa0 + 6d8c3c2 commit 66077ee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
10 changes: 8 additions & 2 deletions index.bs
Expand Up @@ -65,6 +65,12 @@ urlPrefix: https://www.w3.org/TR/orientation-event; spec: DEVICEORIENTATION
text: deviceorientation Event; url: deviceorientation
</pre>

<pre class="anchors">
urlPrefix: https://w3c.github.io/motion-sensors; spec: MOTIONSENSORS
type: dfn
text: Absolute Orientation Sensor; url: absolute-orientation
</pre>

<pre class="link-defaults">
spec:infra;
type:dfn;
Expand Down Expand Up @@ -159,8 +165,8 @@ The elements of the [=list=] are equal to components of a unit quaternion [[QUAT
[cos(θ/2), V<sub>x</sub> * sin(θ/2), V<sub>y</sub> * sin(θ/2), V<sub>z</sub> * sin(θ/2)] where V is
the unit vector representing the axis of rotation.

The {{AbsoluteOrientationSensor}} class is a subclass of {{OrientationSensor}} and it represents the absolute
orientation sensor.
The {{AbsoluteOrientationSensor}} class is a subclass of {{OrientationSensor}} which represents the [=Absolute
Orientation Sensor=].

The absolute orientation sensor is a [=high-level=] sensor which is created through [=sensor-fusion=]
of the [=low-level=] motion sensors:
Expand Down
11 changes: 8 additions & 3 deletions index.html
Expand Up @@ -1430,7 +1430,7 @@
<div class="head">
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
<h1 class="p-name no-ref" id="title">Orientation Sensor</h1>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2017-03-15">15 March 2017</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="2017-03-16">16 March 2017</time></span></h2>
<div data-fill-with="spec-metadata">
<dl>
<dt>This version:
Expand Down Expand Up @@ -1572,8 +1572,8 @@ <h2 class="heading settled" data-level="4" id="model"><span class="secno">4. </s
<p>A <a data-link-type="dfn" href="https://w3c.github.io/sensors#latest-reading">latest reading</a> per <a data-link-type="dfn" href="https://w3c.github.io/sensors#sensor">sensor</a> of orientation type includes an <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-entry">entry</a> whose <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-key">key</a> is "quaternion" and whose <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#map-value">value</a> contains a four element <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#list">list</a>.
The elements of the <a data-link-type="dfn" href="https://infra.spec.whatwg.org/#list">list</a> are equal to components of a unit quaternion <a data-link-type="biblio" href="#biblio-quaternions">[QUATERNIONS]</a> [cos(θ/2), V<sub>x</sub> * sin(θ/2), V<sub>y</sub> * sin(θ/2), V<sub>z</sub> * sin(θ/2)] where V is
the unit vector representing the axis of rotation.</p>
<p>The <code class="idl"><a data-link-type="idl" href="#absoluteorientationsensor" id="ref-for-absoluteorientationsensor-2">AbsoluteOrientationSensor</a></code> class is a subclass of <code class="idl"><a data-link-type="idl" href="#orientationsensor" id="ref-for-orientationsensor-6">OrientationSensor</a></code> and it represents the absolute
orientation sensor.</p>
<p>The <code class="idl"><a data-link-type="idl" href="#absoluteorientationsensor" id="ref-for-absoluteorientationsensor-2">AbsoluteOrientationSensor</a></code> class is a subclass of <code class="idl"><a data-link-type="idl" href="#orientationsensor" id="ref-for-orientationsensor-6">OrientationSensor</a></code> which represents the <a data-link-type="dfn" href="https://w3c.github.io/motion-sensors#absolute-orientation">Absolute
Orientation Sensor</a>.</p>
<p>The absolute orientation sensor is a <a data-link-type="dfn" href="https://w3c.github.io/sensors#high-level">high-level</a> sensor which is created through <a data-link-type="dfn" href="https://w3c.github.io/sensors#sensor-fusion">sensor-fusion</a> of the <a data-link-type="dfn" href="https://w3c.github.io/sensors#low-level">low-level</a> motion sensors:</p>
<ul>
<li data-md="">
Expand Down Expand Up @@ -1812,6 +1812,11 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<ul>
<li><a href="https://w3c.github.io/magnetometer#magnetic-field">magnetic field</a>
</ul>
<li>
<a data-link-type="biblio">[motionsensors]</a> defines the following terms:
<ul>
<li><a href="https://w3c.github.io/motion-sensors#absolute-orientation">absolute orientation sensor</a>
</ul>
<li>
<a data-link-type="biblio">[WEBIDL]</a> defines the following terms:
<ul>
Expand Down

0 comments on commit 66077ee

Please sign in to comment.