#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/modules/xr/xr_rigid_transform.h"
#include <cmath>
#include <utility>
#include "base/not_fatal_until.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_dom_point_init.h"
#include "third_party/blink/renderer/core/geometry/dom_point_read_only.h"
#include "third_party/blink/renderer/modules/xr/xr_utils.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "ui/gfx/geometry/decomposed_transform.h"
#include "ui/gfx/geometry/transform.h"
namespace blink {
namespace {
bool IsComponentValid(DOMPointInit* point) { … }
}
XRRigidTransform::XRRigidTransform(const gfx::Transform& transformationMatrix)
: … { … }
void XRRigidTransform::DecomposeMatrix() { … }
XRRigidTransform::XRRigidTransform(DOMPointInit* position,
DOMPointInit* orientation) { … }
XRRigidTransform* XRRigidTransform::Create(DOMPointInit* position,
DOMPointInit* orientation,
ExceptionState& exception_state) { … }
DOMFloat32Array* XRRigidTransform::matrix() { … }
XRRigidTransform* XRRigidTransform::inverse() { … }
gfx::Transform XRRigidTransform::InverseTransformMatrix() { … }
gfx::Transform XRRigidTransform::TransformMatrix() { … }
void XRRigidTransform::EnsureMatrix() { … }
void XRRigidTransform::EnsureInverse() { … }
void XRRigidTransform::Trace(Visitor* visitor) const { … }
}