Implement Transform2D.h

This commit is contained in:
2024-01-23 04:14:24 -05:00
parent fd2289cee3
commit f7a7ec38d7
5 changed files with 132 additions and 12 deletions

View File

@@ -14,6 +14,11 @@ namespace LinearAlgebra {
Transform2D Scale(float x, float y); // Perform Nonunform Scale
Transform2D Scale(const Vector2& scales); // Perform Nonuniform Scale
Transform2D Rotate();
Vector2 Transform(const Vector2& input) const
{
return transformation * input;
}
};
}