Castor3D 0.16.0
Multiplatform 3D engine
|
A speed. More...
#include <Speed.hpp>
Public Types | |
using | duration_type = DurationT |
using | value_type = ValueT |
Public Member Functions | |
SpeedT ()=default | |
SpeedT (ValueT const &value) | |
template<typename ValueU , typename DurationU > | |
SpeedT (SpeedT< ValueU, DurationU > const &rhs) | |
template<typename ValueU , typename DurationU > | |
SpeedT & | operator= (SpeedT< ValueU, DurationU > const &rhs) |
template<typename DurationU > | |
ValueT | getDistance (DurationU const &duration) const |
ValueT const & | getValue () const |
Static Public Member Functions | |
template<typename DurationU > | |
static double | getDurationRatioFrom () |
template<typename DurationU > | |
static double | getDurationRatioTo () |
Static Public Attributes | |
static DurationT constexpr | Zero { 0u } |
static DurationT constexpr | Unit { 1u } |
Friends | |
template<typename ValueU , typename DurationU , typename TraitsU > | |
class | SpeedT |
template<typename Value , typename Duration , typename Traits > | |
bool | operator== (SpeedT< Value, Duration, Traits > const &, SpeedT< Value, Duration, Traits > const &) |
template<typename Value , typename Duration , typename Traits > | |
bool | operator< (SpeedT< Value, Duration > const &, SpeedT< Value, Duration, Traits > const &) |
template<typename Value , typename Duration , typename Traits > | |
bool | operator> (SpeedT< Value, Duration, Traits > const &, SpeedT< Value, Duration, Traits > const &) |
A speed.
using castor::SpeedT< ValueT, DurationT, TraitsT >::duration_type = DurationT |
using castor::SpeedT< ValueT, DurationT, TraitsT >::value_type = ValueT |
|
default |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
staticconstexpr |
|
staticconstexpr |