Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Reword altitudeAngle/azimuthAngle descriptions in line with PE, add illustrations #125

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added images/altitudeAngle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/azimuthAngle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sources/altitude-azimuth.afdesign
Binary file not shown.
Binary file added images/sources/altitude-azimuth.skp
Binary file not shown.
Binary file added images/sources/azimuth-altitude.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 24 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -392,20 +392,33 @@ <h2><dfn>Touch</dfn> Interface</h2>
</dd>
<dt><dfn>altitudeAngle</dfn></dt>
<dd>
<p>The altitude (in radians) of a stylus, in the range <code>0</code>
(parallel to the surface) to <code>&pi;/2</code> (perpendicular to the
surface). The value <code>0</code> should be used for devices which
do not support this property.</p>
<p>The altitude (in radians) of the transducer (e.g. pen/stylus), in the range [0,π/2]
— where 0 is parallel to the surface (X-Y plane), and π/2 is perpendicular to the surface.
For hardware and platforms that do not report tilt or angle, the value MUST be 0.</p>
<div class="note">
The default value defined here for <code>altitudeAngle</code> is 0.
This differs from the <a href="https://w3c.github.io/pointerevents/">Pointer Events - Level 3</a> [[POINTEREVENTS]] specification's
definition for the <code>altitudeAngle</code> property, which has a default value of π/2,
which positions the transducer as being perpendicular to the surface.
</div>
<figure id="figure_altitudeAngle">
<img src="images/altitudeAngle.png" alt="altitudeAngle explanation diagram">
<figcaption>Example <code>altitudeAngle</code> of π/4 (45 degrees from the X-Y plane).</figcaption>
</figure>
</dd>
<dt><dfn>azimuthAngle</dfn></dt>
<dd>
<p>The azimuth angle (in radians) of a stylus, in the range <code>0</code>
to <code>2&pi;</code>. <code>0</code> represents a stylus whose cap is
pointing in the direction of increasing screenX values.
<code>&pi;/2</code> represents a stylus whose cap is pointing in the
direction of increasing screenY values.
The value <code>0</code> should be used for devices which
do not support this property.</p>
<p>The azimuth angle (in radians) of the transducer (e.g. pen/stylus),
in the range [0, 2π] — where 0 represents a transducer whose cap is pointing in the
direction of increasing X values (point to "3 o'clock" if looking straight down) on the X-Y plane,
and the values progressively increase when going clockwise
(π/2 at "6 o'clock", π at "9 o'clock", 3π/2 at "12 o'clock").
When the transducer is perfectly perpendicular to the surface (<code>altitudeAngle</code> of π/2), the value MUST be 0.
For hardware and platforms that do not report tilt or angle, the value should be 0.</p>
<figure id="figure_azimuthAngle">
<img src="images/azimuthAngle.png" alt="azimuthAngle explanation diagram">
<figcaption>Example <code>azimuthAngle</code> of π/6 ("4 o'clock").</figcaption>
</figure>
</dd>
<dt><dfn>touchType</dfn></dt>
<dd>
Expand Down