#include "ui/gfx/geometry/quaternion.h"
#include <algorithm>
#include <cmath>
#include <numbers>
#include "base/strings/stringprintf.h"
#include "ui/gfx/geometry/vector3d_f.h"
namespace gfx {
namespace {
const double kEpsilon = …;
}
Quaternion::Quaternion(const Vector3dF& axis, double theta) { … }
Quaternion::Quaternion(const Vector3dF& from, const Vector3dF& to) { … }
Quaternion Quaternion::FromAxisAngle(double x,
double y,
double z,
double angle) { … }
Quaternion Quaternion::Slerp(const Quaternion& to, double t) const { … }
Quaternion Quaternion::Lerp(const Quaternion& q, double t) const { … }
double Quaternion::Length() const { … }
Quaternion Quaternion::Normalized() const { … }
std::string Quaternion::ToString() const { … }
}