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