5#include <Common/assertion.h>
6#include <Common/primitive_type.h>
23 template<
typename U = real>
24 constexpr U
toReal()
const;
27 constexpr explicit operator U ()
const;
38 m_nume(
std::move(nume)),
39 m_deno(
std::move(deno))
46 static_assert(std::is_floating_point_v<U>);
48 return m_nume / m_deno;
Definition TFraction.h:16
constexpr TFraction()=default
constexpr U toReal() const
Definition TFraction.h:44
Math functions and utilities.
Definition TransformInfo.h:10