diff --git a/src/math/Mat3x3.cpp b/src/math/Mat3x3.cpp index b91cf1e..2ba0f41 100644 --- a/src/math/Mat3x3.cpp +++ b/src/math/Mat3x3.cpp @@ -109,7 +109,8 @@ Mat3x3& Mat3x3::scale(const float scale_) { } Mat3x3& Mat3x3::translate(const Vector2D& offset) { - multiply(std::array{1.0f, 0.0f, sc(offset.x), 0.0f, 1.0f, sc(offset.y), 0.0f, 0.0f, 1.0f}); + matrix[2] += offset.x; + matrix[5] += offset.y; return *this; }