cpp_robotics::unit::Prefix
単位系接頭辞クラス More...
#include <unit_core.hpp>
Inherits from PrefixBase
Public Types
Name | |
---|---|
using Prefix< N, D > | type |
Public Attributes
Name | |
---|---|
constexpr uint32_t | num |
constexpr uint32_t | den |
Detailed Description
template <uint32_t N,
uint32_t D>
struct cpp_robotics::unit::Prefix;
単位系接頭辞クラス
Template Parameters:
- N
- D
Public Types Documentation
using type
using cpp_robotics::unit::Prefix< N, D >::type = Prefix<N, D>;
Public Attributes Documentation
variable num
static constexpr uint32_t num = N / std::gcd(N, D);
variable den
static constexpr uint32_t den = D / std::gcd(N, D);
Updated on 2024-05-28 at 06:55:40 +0000