Skip to content

Commit

Permalink
Add related FIXME on toMatrix4 where the incorrect behavior maybe is …
Browse files Browse the repository at this point in the history
…normalized.
  • Loading branch information
brcolow committed Dec 28, 2024
1 parent 62a1b2a commit 0adc5f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ function initialize3DTableGraphic(moodyReport) {
let rotationQuat = Quat.identity()

if (axis.magnitude > 0.000001) {
// FIXME: The strange order of this may be related to how toMatrix4 is currently not producing correct values.
// See tests/quat.spec.js toMatrix4 tests.
rotationQuat = new Quat(startVectorMapped.dot(currentVectorMapped), axis[0], -axis[1], 0)
}

Expand Down

0 comments on commit 0adc5f3

Please sign in to comment.