Template for arithmetic on units (treated as a vector space) More...
#include <cmtkUnits.h>
Friends | |
const T | operator* (const double lhs, const T &rhs) |
Left-hand scalar multiplication. | |
const T | operator* (const T &lhs, const double rhs) |
Right-hand scalar multiplication. | |
const T | operator/ (const T &lhs, const double rhs) |
Right-hand scalar division. | |
const T | operator+ (const T &lhs, const T &rhs) |
Addition. | |
const T | operator- (const T &rhs) |
Negation. |
Template for arithmetic on units (treated as a vector space)
Definition at line 76 of file cmtkUnits.h.
const T operator* | ( | const double | lhs, |
const T & | rhs | ||
) | [friend] |
Left-hand scalar multiplication.
Definition at line 80 of file cmtkUnits.h.
const T operator* | ( | const T & | lhs, |
const double | rhs | ||
) | [friend] |
Right-hand scalar multiplication.
Definition at line 86 of file cmtkUnits.h.
const T operator+ | ( | const T & | lhs, |
const T & | rhs | ||
) | [friend] |
Addition.
Definition at line 98 of file cmtkUnits.h.
const T operator- | ( | const T & | rhs ) | [friend] |
Negation.
Definition at line 104 of file cmtkUnits.h.
const T operator/ | ( | const T & | lhs, |
const double | rhs | ||
) | [friend] |
Right-hand scalar division.
Definition at line 92 of file cmtkUnits.h.