C++ 3d-vector Projects
-
Imath
Imath is a C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics
This is a little complex.
Given you want the same side of the mesh touching at the start and end, we can just convert the matrices to be relative to the sphere center using the sphere coordinate space, and then extract their relative quaternions and translations. The orientation towards the center should be the same for both relative to the quaternion orientation. Thus we really just need to interpolate the quaternion using squad interpolation (https://github.com/AcademySoftwareFoundation/Imath/blob/8456...) while reconstructing the sphere-coordinate matrix at each step and using the quaternion-relative orientation.
This is a lot simpler and faster than the proposed multi-step algorithm.
-
JetBrains
Tell us how you use coding tools. You may win a prize! Are you a developer or a data analyst? Share your thoughts about your coding tools in our short survey and get a chance to win prizes!
C++ 3d-vector discussion
C++ 3d-vector related posts
Index
# | Project | Stars |
---|---|---|
1 | Imath | 431 |