#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/gfx/geometry/quaternion.h"
#include <cmath>
#include <numbers>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/vector3d_f.h"
namespace gfx {
namespace {
const double kEpsilon = …;
#define EXPECT_QUATERNION(expected, actual) …
void CompareQuaternions(const Quaternion& a, const Quaternion& b) { … }
}
TEST(QuatTest, DefaultConstruction) { … }
TEST(QuatTest, AxisAngleCommon) { … }
TEST(QuatTest, VectorToVectorRotation) { … }
TEST(QuatTest, AxisAngleWithZeroLengthAxis) { … }
TEST(QuatTest, Addition) { … }
TEST(QuatTest, Multiplication) { … }
TEST(QuatTest, Scaling) { … }
TEST(QuatTest, Normalization) { … }
TEST(QuatTest, Lerp) { … }
TEST(QuatTest, Slerp) { … }
TEST(QuatTest, SlerpOppositeAngles) { … }
TEST(QuatTest, SlerpRotateXRotateY) { … }
TEST(QuatTest, Slerp360) { … }
TEST(QuatTest, SlerpEquivalentQuaternions) { … }
TEST(QuatTest, SlerpQuaternionWithInverse) { … }
TEST(QuatTest, SlerpObtuseAngle) { … }
TEST(QuatTest, Equals) { … }
TEST(QuatTest, NotEquals) { … }
}