Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/vr/test/mochitest/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  VRSimulationDriver.js

  Sprache: JAVA
 

var VRServiceTest;
var vrMockDisplay;

var VRSimulationDriver = (function () {
  "use strict";

  var AttachWebVRDisplay = function () {
    if (vrMockDisplay) {
      // Avoid creating multiple displays
      return Promise.resolve(vrMockDisplay);
    }
    var promise = VRServiceTest.attachVRDisplay("VRDisplayTest");
    promise.then(function (display) {
      assert_true(display != null"AttachWebVRDisplay should success.");
      vrMockDisplay = display;
    });

    return promise;
  };

  var SetVRDisplayPose = function (
    position,
    linearVelocity,
    linearAcceleration,
    orientation,
    angularVelocity,
    angularAcceleration
  ) {
    vrMockDisplay.setPose(
      position,
      linearVelocity,
      linearAcceleration,
      orientation,
      angularVelocity,
      angularAcceleration
    );
  };

  var SetEyeResolution = function (width, height) {
    vrMockDisplay.setEyeResolution(width, height);
  };

  var SetEyeParameter = function (
    eye,
    offsetX,
    offsetY,
    offsetZ,
    upDegree,
    rightDegree,
    downDegree,
    leftDegree
  ) {
    vrMockDisplay.setEyeParameter(
      eye,
      offsetX,
      offsetY,
      offsetZ,
      upDegree,
      rightDegree,
      downDegree,
      leftDegree
    );
  };

  var SetMountState = function (isMounted) {
    vrMockDisplay.setMountState(isMounted);
  };

  var UpdateVRDisplay = function () {
    vrMockDisplay.update();
  };

  var AttachVRController = function () {
    var promise = VRServiceTest.attachVRController("VRControllerTest");
    promise.then(function (controller) {
      assert_true(controller != null"AttachVRController should success.");
    });

    return promise;
  };

  var API = {
    AttachWebVRDisplay,
    SetVRDisplayPose,
    SetEyeResolution,
    SetEyeParameter,
    SetMountState,
    UpdateVRDisplay,
    AttachVRController,

    none: false,
  };

  return API;
})();

Messung V0.5 in Prozent
C=86 H=94 G=89

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.