Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14 lines
219 B
C++
14 lines
219 B
C++
#include "math.hpp"
|
|
|
|
Math::Math(int scale) : scale_(scale) {
|
|
scale_ = scale;
|
|
}
|
|
|
|
Math::~Math() {
|
|
scale_ = 0;
|
|
}
|
|
|
|
int Math::add(int a, int b) { return a + b; }
|
|
|
|
int Math::scaled(int v) const { return v * scale_; }
|