Exemple #1
0
void MetersPerSecond::operator+=(const Speed& speed) {
    m_metersPerSecond += speed.getMetersPerSecond();
}
Exemple #2
0
MetersPerSecond MetersPerSecond::operator-(const Speed& speed) const {
    return MetersPerSecond(getMetersPerSecond() - speed.getMetersPerSecond());
}
Exemple #3
0
double MetersPerSecond::operator/(const Speed& speed) const {
    return getMetersPerSecond() / speed.getMetersPerSecond();
}
Exemple #4
0
MetersPerSecond::MetersPerSecond(const Speed& speed) {
    m_metersPerSecond = speed.getMetersPerSecond();
}