Control Libraries 6.3.4
|
Public Member Functions | |
constexpr | Velocity (long double n=0.0) |
Constructor with a value in the base unit of T. More... | |
constexpr | Velocity (const Velocity< T > &vel) |
Copy constructor from another Velocity. More... | |
constexpr long double | get_value () const |
Getter of the value attribute. More... | |
constexpr Velocity< T > & | operator- () |
Overload the - operator. More... | |
constexpr Velocity< T > & | operator+= (const Velocity< T > &rhs) |
Overload the += operator. More... | |
constexpr Velocity< T > | operator+ (const Velocity< T > &rhs) const |
Overload the + operator. More... | |
constexpr Velocity< T > & | operator-= (const Velocity< T > &rhs) |
Overload the -= operator. More... | |
constexpr Velocity< T > | operator- (const Velocity< T > &rhs) const |
Overload the - operator. More... | |
constexpr Velocity< T > & | operator*= (double lambda) |
Overload the *= operator with a scalar. More... | |
constexpr Velocity< T > | operator* (double lambda) const |
Overload the * operator with a scalar. More... | |
constexpr Velocity< T > & | operator/= (double lambda) |
Overload the /= operator with a scalar. More... | |
constexpr Velocity< T > | operator/ (double lambda) const |
Overload the / operator with a scalar. More... | |
constexpr bool | operator== (const Velocity< T > &rhs) const |
Overload the == operator. More... | |
constexpr bool | operator!= (const Velocity< T > &rhs) const |
Overload the != operator. More... | |
constexpr bool | operator> (const Velocity< T > &rhs) const |
Overload the > operator. More... | |
constexpr bool | operator>= (const Velocity< T > &rhs) const |
Overload the > operator. More... | |
constexpr bool | operator< (const Velocity< T > &rhs) const |
Overload the < operator. More... | |
constexpr bool | operator<= (const Velocity< T > &rhs) const |
Overload the < operator. More... | |
Friends | |
constexpr double | operator/ (const Velocity< T > &lhs, const Velocity< T > &rhs) |
Overload the / operator between two Velocitys. More... | |
constexpr Velocity< T > | operator* (double lambda, const Velocity< T > &rhs) |
Overload the * operator with a scalar on the left side. More... | |
template<class Rep , class DurationRatio > | |
constexpr Velocity< T > | operator/ (const T &lhs, const std::chrono::duration< Rep, DurationRatio > &rhs) |
Overload the / operator for a T divided by a time period. More... | |
Definition at line 82 of file Velocity.hpp.
|
constexpr |
Constructor with a value in the base unit of T.
n | the value in the base unit of T |
Definition at line 239 of file Velocity.hpp.
|
constexpr |
Copy constructor from another Velocity.
vel | the Velocity to copy |
Definition at line 243 of file Velocity.hpp.
|
constexpr |
Getter of the value attribute.
Definition at line 247 of file Velocity.hpp.
|
constexpr |
Overload the != operator.
rhs | the other Velocity to check inequality with |
Definition at line 315 of file Velocity.hpp.
|
constexpr |
Overload the * operator with a scalar.
lambda | the scalar to multiply with |
Definition at line 290 of file Velocity.hpp.
|
constexpr |
Overload the *= operator with a scalar.
lambda | the scalar to multiply with |
Definition at line 284 of file Velocity.hpp.
|
constexpr |
|
constexpr |
Overload the += operator.
rhs | Velocity to add |
Definition at line 258 of file Velocity.hpp.
|
constexpr |
Overload the - operator.
Definition at line 252 of file Velocity.hpp.
|
constexpr |
Overload the - operator.
rhs | Velocity to subtract |
Definition at line 277 of file Velocity.hpp.
|
constexpr |
Overload the -= operator.
rhs | Velocity to subtract |
Definition at line 271 of file Velocity.hpp.
|
constexpr |
Overload the / operator with a scalar.
lambda | the scalar to divide by |
Definition at line 303 of file Velocity.hpp.
|
constexpr |
Overload the /= operator with a scalar.
lambda | the scalar to divide by |
Definition at line 297 of file Velocity.hpp.
|
constexpr |
Overload the < operator.
rhs | the other Velocity to check strict inferiority with |
Definition at line 330 of file Velocity.hpp.
|
constexpr |
Overload the < operator.
rhs | the other Velocity to check inferiority with |
Definition at line 335 of file Velocity.hpp.
|
constexpr |
Overload the == operator.
rhs | the other Velocity to check equality with |
Definition at line 310 of file Velocity.hpp.
|
constexpr |
Overload the > operator.
rhs | the other Velocity to check strict superiority with |
Definition at line 320 of file Velocity.hpp.
|
constexpr |
Overload the > operator.
rhs | the other Velocity to check superiority with |
Definition at line 325 of file Velocity.hpp.
|
friend |
Overload the * operator with a scalar on the left side.
lambda | the scalar to multiply with |
Definition at line 224 of file Velocity.hpp.
|
friend |
Overload the / operator for a T divided by a time period.
lhs | the T unit |
rhs | the time period |
Definition at line 340 of file Velocity.hpp.
|
friend |
Overload the / operator between two Velocitys.
Definition at line 215 of file Velocity.hpp.