Skip to content

Commit

Permalink
fix buffer write
Browse files Browse the repository at this point in the history
  • Loading branch information
iTitus committed Jun 17, 2021
1 parent 7348e66 commit 8f6f577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/github/ititus/math/matrix/Mat3f.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public float determinant() {
public void write(FloatBuffer buffer) {
buffer.put(m11).put(m21).put(m31);
buffer.put(m12).put(m22).put(m32);
buffer.put(m13).put(m32).put(m33);
buffer.put(m13).put(m23).put(m33);
}

public float m(int row, int col) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/ititus/math/matrix/Mat4f.java
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public float determinant() {
public void write(FloatBuffer buffer) {
buffer.put(m11).put(m21).put(m31).put(m41);
buffer.put(m12).put(m22).put(m32).put(m42);
buffer.put(m13).put(m32).put(m33).put(m43);
buffer.put(m13).put(m23).put(m33).put(m43);
buffer.put(m14).put(m24).put(m34).put(m44);
}

Expand Down

0 comments on commit 8f6f577

Please sign in to comment.