Skip to content
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

Linear interpolation for matrix #91

Closed
wants to merge 1 commit into from
Closed

Linear interpolation for matrix #91

wants to merge 1 commit into from

Conversation

Dimach
Copy link

@Dimach Dimach commented Aug 31, 2016

I added method for matrix which would be useful.

@httpdigest
Copy link
Member

Can you name a use-case in which linearly componentwise interpolation of the matrix elements could be useful? I currently only see that an Eigenvalue decomposition with a linear interpolation of translation and scale and a spherical interpolation of the rotation components could be useful.

@Dimach
Copy link
Author

Dimach commented Sep 3, 2016

I use that for interpolate key frames in my skeletal animation library. Spherical interpolation of rotation component not needed in this case because key frames fairly frequently and vector length change
insensibly.

httpdigest added a commit that referenced this pull request Sep 25, 2016
Thanks to @Dimach for suggesting and providing initial JavaDocs and
implementation.
@httpdigest
Copy link
Member

Hey @Dimach, I finally added your proposed Matrix.lerp() methods to all matrices, including the 4x3 ones. Additionally, I chose a faster interpolation method and added a minor JavaDoc fix.
Thanks for suggestion and providing the initial JavaDoc/implementation!

@httpdigest httpdigest closed this Sep 25, 2016
@httpdigest httpdigest added this to the 1.8.5 release milestone Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants