2#ifndef LIBSBX_MATH_TESTS_ANGLE_TESTS_HPP_
3#define LIBSBX_MATH_TESTS_ANGLE_TESTS_HPP_
5#include <gtest/gtest.h>
9TEST(libsbx_math_angle, degree) {
17TEST(libsbx_math_angle,
radian) {
25TEST(libsbx_math_angle, degree_to_radian) {
31 EXPECT_FLOAT_EQ(
radian.
value(), std::numbers::pi_v<float> / 2.0f);
34TEST(libsbx_math_angle, radian_to_degree) {
37 auto radian = 1.57079632679_rad;
Angle types and utilities.
constexpr auto to_degrees(const basic_radian< Type > &radian) noexcept -> basic_degree< Type >
Converts radians to degrees.
Definition: angle.ipp:412
constexpr auto to_radians(const basic_degree< Type > °ree) noexcept -> basic_radian< Type >
Converts degrees to radians.
Definition: angle.ipp:417
Strongly-typed degree value wrapper.
Definition: angle.hpp:45
constexpr auto value() const noexcept -> value_type
Returns the stored degree value.
Definition: angle.ipp:64
Strongly-typed radian value wrapper.
Definition: angle.hpp:354
constexpr auto value() const noexcept -> value_type
Returns the stored radian value.
Definition: angle.ipp:190
User-defined literals for degree and radian values.
Definition: angle.hpp:1003