chromium/third_party/blink/renderer/modules/sensor/sensor_reading_remapper.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/modules/sensor/sensor_reading_remapper.h"

#include "base/notreached.h"
#include "services/device/public/mojom/sensor.mojom-shared.h"

SensorReading;
SensorReadingXYZ;
SensorReadingQuat;
SensorType;

namespace blink {

namespace {
constexpr int SinScreenAngle(uint16_t angle) {}

constexpr int CosScreenAngle(uint16_t angle) {}

void RemapSensorReadingXYZ(uint16_t angle, SensorReadingXYZ& reading) {}

constexpr double kInverseSqrt2 =;

// Returns sin(-angle/2) for the given orientation angle.
constexpr double SinNegativeHalfScreenAngle(uint16_t angle) {}

// Returns cos(-angle/2) for the given orientation angle.
constexpr double CosNegativeHalfScreenAngle(uint16_t angle) {}

void RemapSensorReadingQuat(uint16_t angle, SensorReadingQuat& reading) {}

}  // namespace

// static
void SensorReadingRemapper::RemapToScreenCoords(
    SensorType type,
    uint16_t angle,
    device::SensorReading* reading) {}

}  // namespace blink