Skip to content

Commit

Permalink
transform fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cartesian-theatrics committed May 16, 2024
1 parent 5c0d8c6 commit 844547a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions bindings/java/src/main/cpp/manifold3d/matrix_transforms.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,8 @@ glm::mat4x3 Transform(const glm::mat4x3& a, const glm::mat4x3& b) {
glm::mat4x3 InvertTransform(const glm::mat4x3& m) {

glm::mat3x3 rotationPart = glm::mat3x3(m);
glm::mat3x3 unRotated = SetRotation(m, glm::transpose(rotationPart));

glm::vec3 translation = -m[3];
glm::mat4x3 result = Translate(unRotated, translation);

return result;
glm::mat4x3 unRotated = SetRotation(m, glm::transpose(rotationPart));
return SetTranslation(unRotated, -m[3]);
}

glm::mat3x2 InvertTransform(const glm::mat3x2& m) {
Expand Down Expand Up @@ -208,5 +204,4 @@ glm::mat3x2 CombineTransforms(const glm::mat3x2& a, const glm::mat3x2& b) {
}



}
2 changes: 1 addition & 1 deletion bindings/java/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.83
1.0.84

0 comments on commit 844547a

Please sign in to comment.