cglm icon indicating copy to clipboard operation
cglm copied to clipboard

Quaternion New Features

Open recp opened this issue 1 year ago • 5 comments

https://developer.apple.com/documentation/accelerate/working_with_quaternions

We already have glm_quat_rotatev() ( which is similar to simd_act() I guess ), glm_quat_rotate() , glm_quat_rotate_at() ... but

  1. glm_quat_spline()
  2. glm_quat_bezier()
  3. glm_quat_slerp_longest()

would be nice to have.

recp avatar Aug 25 '23 08:08 recp

thinking of implementing glm_quat_slerp_longest(versor q, versor r, float t, versor dest) by making r negative, comparing how big the angle is with q with r negative and regular r then slerping with the longer one.

telephone001 avatar Dec 16 '23 19:12 telephone001

Sorry I have been busy with some stuff and forgot to implement this. Hopefully someone else can implement this one.

telephone001 avatar Feb 04 '24 08:02 telephone001

@telephone001 thanks, I'm also busy for a while but can implement when available

recp avatar Feb 05 '24 11:02 recp

I'm back and ready to finish these things. I just realized that it was extremely easy to implement glm_quat_slerp_longest. But I'm also ready to implement the other two.

telephone001 avatar May 11 '24 02:05 telephone001

Hi @telephone001,

Sorry for the delay,

Many thanks 🤗

recp avatar May 13 '24 14:05 recp