-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: expand transformation matrix to 4x4xN ? #113
Comments
Hi, yes, sounds good! I think some functions (maybe written by you?) already follow this convention. The main functions to update would be the "transformXXX"ones. Do you see others? |
I think the following files: composeTransforms3d.m Actually more work than I thought. ;-) One question is: what is the most elegant, efficient and consistent way to implement this feature? Other question is: what conventions should be used for multiple input variables? Kind regards |
Hi, yes, the number of functions devoted to transforms start to be large! However, all the creation functions can be left as is for the moment. This reduces the work. The output for multiple inputs may be problematic... best regards, |
Matlab introduced a new function that might help https://www.mathworks.com/help/matlab/ref/pagemtimes.html |
If you are interested, with respect to the above, in my opinion you should aim to reproduce something comparable to the implicit expansion Matlab will do nowadays with incompatible sizes (https://uk.mathworks.com/help/matlab/matlab_prog/compatible-array-sizes-for-basic-operations.html) |
Hi, Reconsidering the question today, a solution could be as follow:
This way, we ensure consistent dimension of output argument. Two improvements may be added:
|
Hi David
What do you think about expanding the transformation matrices to a third dimension [4x4xN]?
That would introduce the possibility to transform multiple points [Nx3], vectors [Nx3], etc. with multiple transformation matrices [4x4xN].
Kind regards
The text was updated successfully, but these errors were encountered: