From a874fd65e4a0968924b11f741dc9b70df031d55c Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Thu, 25 Jan 2024 15:28:35 +0100 Subject: [PATCH] Remove the "parse quaternion reading" algorithm Since https://github.com/w3c/deviceorientation/pull/124 and https://github.com/w3c/orientation-sensor/pull/83, there are no specifications using this algorithm anymore. --- index.bs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/index.bs b/index.bs index 0fbe0df..bdbe6df 100644 --- a/index.bs +++ b/index.bs @@ -1896,31 +1896,6 @@ a [=virtual sensor metadata=] for use in [=per-type virtual sensor metadata=]. 1. Return |reading|. -
Parse quaternion reading
- -
- : input - :: |parameters|, a JSON {{Object}} - : output - :: A [=sensor reading=] or **undefined** - - 1. Let |quaternionArray| be the result of invoking [=get a property=] from |parameters| with - "`quaternion`". - 1. If |quaternionArray| is not an {{Array}}, or if its "`length`" property is not 4, return - **undefined**. - 1. Let |x| be the result of invoking [=get a property=] from |quaternionArray| with 0. - 1. If |x| is not a {{Number}}, or its value is **NaN**, +∞, or −∞, return **undefined**. - 1. Let |y| be the result of invoking [=get a property=] from |quaternionArray| with 1. - 1. If |y| is not a {{Number}}, or its value is **NaN**, +∞, or −∞, return **undefined**. - 1. Let |z| be the result of invoking [=get a property=] from |quaternionArray| with 2. - 1. If |z| is not a {{Number}}, or its value is **NaN**, +∞, or −∞, return **undefined**. - 1. Let |w| be the result of invoking [=get a property=] from |quaternionArray| with 3. - 1. If |w| is not a {{Number}}, or its value is **NaN**, +∞, or −∞, return **undefined**. - 1. Let |reading| be a new [=sensor reading=]. - 1. [=map/Set=] |reading|["`quaternion`"] be the [=/list=] « |x|, |y|, |z|, |w| ». - 1. Return |reading|. -
- ### Delete virtual sensor ### {#delete-virtual-sensor-command}