Library of functions for the Generic Sensor API wrappers.
More...
Library of functions for the Generic Sensor API wrappers.
- See also
- https://www.w3.org/TR/generic-sensor/
- Author
- Copyright (C) 2021 Radek Hranicky
- License:
- SPDX-License-Identifier: GPL-3.0-or-later
Supporting fuctions for Generic Sensor API Wrappers
◆ fixedNumber()
function fixedNumber |
( |
|
num, |
|
|
|
digits, |
|
|
|
base |
|
) |
| |
◆ multVectRot()
function multVectRot |
( |
|
vec, |
|
|
|
mat |
|
) |
| |
◆ sen_generateAround()
function sen_generateAround |
( |
|
number, |
|
|
|
tolerance |
|
) |
| |
◆ sen_prng()
◆ device_orientation_functions
var device_orientation_functions |
◆ sensorapi_prng_functions
var sensorapi_prng_functions |
Initial value:= `
function sen_generateSeed(s) {
var h;
for(var i = 0, h = 1779033703 ^ s.length; i < s.length; i++)
h = Math.imul(h ^ s.charCodeAt(i), 3432918353),
h = h << 13 | h >>> 19;
return h;
}
var sen_seed = sen_seed ||
const domainHash
<reference path="../../common/wrappingS-GEO.js">
Definition wrappingS-GEO_tests.js:26