Skip to content

Bug: Matrix4x4 multiplication is wrong #84

@AlBuSoft

Description

@AlBuSoft

Description

Wrong multiplication of Matrix4x4.

Correct implementation:

Matrix4x4 result; for (int row = 0; row < 4; ++row) { for (int col = 0; col < 4; ++col) { result.matrix[row][col] = left.matrix[row][0] * right.matrix[0][col] + left.matrix[row][1] * right.matrix[1][col] + left.matrix[row][2] * right.matrix[2][col] + left.matrix[row][3] * right.matrix[3][col]; } } left = result; return left;

Details

Projekt: "ecm.math"
Datei: "Matrix4x4.hpp" "Matrix4x4.inl"
Namespace: "ecm::math"

Tasks

  • Fix wrong multiplication

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions