Implementing Vector3 Unit Tests

This commit is contained in:
2024-01-02 16:29:19 -05:00
parent 0620c8aea5
commit 09922ac0bd
7 changed files with 298 additions and 14 deletions

View File

@@ -152,6 +152,7 @@ namespace LinearAlgebra {
auto m21 = this->elems[2][1];
auto m22 = this->elems[2][2];
// NO: This is correct order for transposition!
return {
m00, m10, m20,
m01, m11, m21,
@@ -162,7 +163,7 @@ namespace LinearAlgebra {
Vector2 Matrix3x3::Transform(const Vector2 &rhs) const {
return {
At(0,0) * rhs.x + At(0, 1) * rhs.y,
At(1, 0) * rhs.x + At(1, 1) * rhs.y
At(1,0) * rhs.x + At(1, 1) * rhs.y
};
}