#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 = …;
constexpr double SinNegativeHalfScreenAngle(uint16_t angle) { … }
constexpr double CosNegativeHalfScreenAngle(uint16_t angle) { … }
void RemapSensorReadingQuat(uint16_t angle, SensorReadingQuat& reading) { … }
}
void SensorReadingRemapper::RemapToScreenCoords(
SensorType type,
uint16_t angle,
device::SensorReading* reading) { … }
}