Files
core_math/tjp/core/math/Real.hpp
Timothy Prepscius 0807c0286a flatten 20260225
2026-02-25 12:36:47 -05:00

44 lines
752 B
C++
Executable File

//
// Math.hpp
// amoeba
//
// Created by Timothy Prepscius on 12/30/16.
// Copyright © 2016 Timothy Prepscius. All rights reserved.
//
#pragma once
#include "Real.h"
#include "Zero.h"
namespace tjp {
namespace core {
namespace math {
template<typename Real>
struct constants {
static const Real PI;
static const Real TWO_PI;
static const Real DEGREES_TO_RADIANS;
static const Real RADIANS_TO_DEGREES;
} ;
template<>
const double tjp::core::math::constants<double>::PI;
template<>
const float tjp::core::math::constants<float>::PI;
template<>
const double tjp::core::math::constants<double>::TWO_PI;
template<>
const float tjp::core::math::constants<float>::TWO_PI;
} // namespace
} // namespace
} // namespace
#include "Real.inl"