#include "third_party/blink/renderer/modules/xr/xr_utils.h"
#include <cmath>
#include "third_party/blink/renderer/bindings/modules/v8/v8_union_webgl2renderingcontext_webglrenderingcontext.h"
#include "third_party/blink/renderer/core/geometry/dom_point_read_only.h"
#include "third_party/blink/renderer/modules/webgl/webgl2_rendering_context.h"
#include "third_party/blink/renderer/modules/webgl/webgl_rendering_context.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "ui/gfx/geometry/transform.h"
namespace blink {
DOMFloat32Array* transformationMatrixToDOMFloat32Array(
const gfx::Transform& matrix) { … }
gfx::Transform DOMFloat32ArrayToTransform(DOMFloat32Array* m) { … }
gfx::Transform WTFFloatVectorToTransform(const Vector<float>& m) { … }
DOMPointReadOnly* makeNormalizedQuaternion(double x,
double y,
double z,
double w) { … }
WebGLRenderingContextBase* webglRenderingContextBaseFromUnion(
const V8XRWebGLRenderingContext* context) { … }
std::optional<device::Pose> CreatePose(const gfx::Transform& matrix) { … }
device::mojom::blink::XRHandJoint StringToMojomHandJoint(
const String& hand_joint_string) { … }
String MojomHandJointToString(device::mojom::blink::XRHandJoint hand_joint) { … }
std::optional<device::mojom::XRSessionFeature> StringToXRSessionFeature(
const String& feature_string) { … }
String XRSessionFeatureToString(device::mojom::XRSessionFeature feature) { … }
bool IsFeatureEnabledForContext(device::mojom::XRSessionFeature feature,
const ExecutionContext* context) { … }
}