Add matrix transpose multiplication #358
Closed
dataphract
started this conversation in
Ideas
Replies: 1 comment
-
Created #494 for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In collision detection, it's often useful to perform computations in the local space of one of the involved objects.
For instance, given an OBB:
the closest point within the OBB to another point can be found like so:
other
is converted to the local space ofself
by premultiplying by the inverse ofself.orientation
, and sinceself.orientation
is an orthonormal basis, its inverse is equivalent to its transpose. However, it's not necessary to actually construct the transposed matrix -- the multiplication can be performed by dotting the columns of the left-hand side with the columns of the right.Ideally, we could instead write:
Beta Was this translation helpful? Give feedback.
All reactions