JavaScript Restrictor
Browser extension that improves privacy and security
Loading...
Searching...
No Matches
wrappingL-SENSOR.js File Reference

Library of functions for the Generic Sensor API wrappers. More...

Functions

function sen_prng ()
 
function sen_generateAround (number, tolerance)
 
function fixedNumber (num, digits, base)
 
function multVectRot (vec, mat)
 

Variables

var sensorapi_prng_functions
 
var device_orientation_functions
 

Detailed Description

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

Function Documentation

◆ fixedNumber()

function fixedNumber (   num,
  digits,
  base 
)
Here is the caller graph for this function:

◆ multVectRot()

function multVectRot (   vec,
  mat 
)
Here is the caller graph for this function:

◆ sen_generateAround()

function sen_generateAround (   number,
  tolerance 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sen_prng()

function sen_prng ( )
Here is the caller graph for this function:

Variable Documentation

◆ 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 ||
sen_generateSeed(domainHash)
const domainHash
<reference path="../../common/wrappingS-GEO.js">
Definition wrappingS-GEO_tests.js:26