chromium/ui/gfx/geometry/quaternion.cc

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;

}  // namespace

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) {}

// Adapted from https://www.euclideanspace.com/maths/algebra/realNormedAlgebra/
// quaternions/slerp/index.htm
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 {}

}  // namespace gfx