Implementing Vector3 Unit Tests
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user