Touch.rotationAngle

  • Revision slug: Web/API/Touch.rotationAngle
  • Revision title: Touch.rotationAngle
  • Revision id: 405319
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment page created, 129 words addedMoved From DOM/Touch.rotationAngle to Web/API/Touch.rotationAngle

Revision Content

{{ DomRef() }}

Summary

Returns the rotation angle, in degrees, of the contact area ellipse defined by {{ domxref("Touch.radiusX") }} and {{ domxref("Touch.radiusY") }}. The value may be between 0 and 90. Together, these three values describe an ellipse that approximates the size and shape of the area of contact between the user and the screen. This may be a large ellipse representing the contact between a fingertip and the screen or a small one representing the tip of a stylus, for example.

Syntax

var angle = touchItem.rotationAngle;

Return value

angle
The number of degrees of rotation to apply to the described ellipse to align with the contact area between the user and the touch surface.

Specification

Touch Events Specification

See also

  • {{ domxref("Touch.radiusX") }}
  • {{ domxref("Touch.radiusY") }}
  • {{ domxref("Touch.force") }}

Revision Source

<p>{{ DomRef() }}</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>Returns the rotation angle, in degrees, of the contact area ellipse defined by {{ domxref("Touch.radiusX") }} and {{ domxref("Touch.radiusY") }}. The value may be between 0 and 90. Together, these three values describe an ellipse that approximates the size and shape of the area of contact between the user and the screen. This may be a large ellipse representing the contact between a fingertip and the screen or a small one representing the tip of a stylus, for example.</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre class="eval">var <em>angle</em> = <em>touchItem</em>.rotationAngle;
</pre>
<h3 id="Return_Value" name="Return_Value">Return value</h3>
<dl> <dt><code>angle</code></dt> <dd>The number of degrees of rotation to apply to the described ellipse to align with the contact area between the user and the touch surface.</dd>
</dl>
<h3 id="Specification" name="Specification">Specification</h3>
<p><a class=" external" href="http://www.w3.org/TR/touch-events/" title="http://www.w3.org/TR/touch-events/">Touch Events Specification</a></p>
<h3 id="See_also">See also</h3>
<ul> <li>{{ domxref("Touch.radiusX") }}</li> <li>{{ domxref("Touch.radiusY") }}</li> <li>{{ domxref("Touch.force") }}</li>
</ul>
Revert to this revision