clemense / quaternion-conventions

An overview of different quaternion implementations and their chosen order: x-y-z-w or w-x-y-z?
MIT License
123 stars 4 forks source link

Add distinction between API and internal memory order for USD #2

Closed rbabich closed 2 years ago

rbabich commented 2 years ago

In USD, the GfQuatf() and GfQuaterion() constructors take W-X-Y-Z, but internally, the ordering is X-Y-Z-W:

private:
     [GfVec3f](https://graphics.pixar.com/usd/release/api/class_gf_vec3f.html) _imaginary;

     float _real;

https://graphics.pixar.com/usd/release/api/quatf_8h_source.html

clemense commented 2 years ago

Great, thank you!