Change-Id: I778007e9af5d0443808589581994f046e025af23
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
_faceShape.resize(ToNumber<int>(line));
for (auto &point : _faceShape) {
getline(file, line);
- point.x = ToNumber<float>(line);
+ point.x = -1.0f * ToNumber<float>(line);
}
for (auto &point : _faceShape) {
getline(file, line);
- point.y = ToNumber<float>(line);
+ point.y = -1.0f * ToNumber<float>(line);
}
for (auto &point : _faceShape) {
auto velocityY = diffY < 0.02f ? 0.0f : (get<1>(_measuredValue.back()) - get<1>(_measuredValue.front())) / static_cast<float>(_maxCapacity);
_measuredValue.pop();
- return { -velocityX * _radiusXmm, velocityY * _radiusYmm };
+ return { velocityX * _radiusXmm, -1.f * velocityY * _radiusYmm };
}
} // smartpointer
} // services