Skip to content

Commit

Permalink
Remove Matrix4 warning in doc: Matrix4.inverse() is now full 4x4 inverse
Browse files Browse the repository at this point in the history
  • Loading branch information
aslze committed Nov 4, 2024
1 parent 691e9d8 commit 468421f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/asl/Matrix4.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ class String;
/**
A Matrix4 is a 4x4 matrix useful for representing affine transformations in 3D space.
Warning: the inverse() method assumes the bottom row is [0, 0, 0, 1] as in affine transform matrices, so
it is not a general 4x4 matrix inverse.
~~~
Matrix4 a = Matrix4::translate(10, 4, 0) * Matrix4::rotateX(PI/2);
Vec3 v = a.inverse().transposed() * Vec3(1, 0, 0);
Expand Down

0 comments on commit 468421f

Please sign in to comment.