question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Quaternion.slerpQuaternions()

See original GitHub issue

It’s already possible to easily interpolate between two quaternions by using the static helper, but the Vector classes already implement a .lerpVectors, would it make sense to also have the same API for quaternions?

const q = new Quaternion()
q.slerpQuaternions(quatA, quatB, 0.6)

Please understand that this is just to keep the API predictable for end users

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Mugen87commented, Mar 27, 2021

@gsimone I’ve filed a PR in order to make sure it lands in r127.

1reaction
WestLangleycommented, Mar 23, 2021

Yes, for consistency. This PR is a great suggestion.

EDIT: To be precise, we add the new method for consistency. We remove the old method because it becomes superfluous.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slerp - Wikipedia
In computer graphics, Slerp is shorthand for spherical linear interpolation, introduced by Ken Shoemake in the context of quaternion interpolation for the ...
Read more >
Spherical Linear Interpolation (Slerp)
While Slerp interpolates along a great arc between two quaternions, it is also possible to interpolate along a straight line (in four-dimensional quaternion...
Read more >
Scripting API: Quaternion.Slerp - Unity - Manual
Spherically interpolates between quaternions a and b by ratio t . The parameter t is clamped to the range [0, 1]. Use this...
Read more >
MATLAB slerp - Spherical linear interpolation - MathWorks
Quaternion spherical linear interpolation (SLERP) is an extension of linear interpolation along a plane to spherical interpolation in three dimensions. The ...
Read more >
Maths - Quaternion Interpolation (SLERP) - EuclideanSpace
The following code generates a quaternion between two given quaternions in proportion to the variable t, if t=0 then qm=qa, if t=1 then...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found