metafizzy / metafizzy/zdog

Add Versor Dragging?

Open
#13 5 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
JavaScript
Stars
10.7k
Forks
407
PR merge metrics
No merged PRs in 30d

Description

Looks to me like the behaviour or of the dragger tool is working in euler angles, not quaternions. As is the vector.js has only euler rotation modes.
Is it planned to add this or even a known issue?

for an example of versor dragging see this
https://observablehq.com/@d3/versor-dragging
and the comparison here:
https://www.jasondavies.com/maps/rotate/

Maybe have a look if this versor library seems like a good dependency to add:
https://github.com/Fil/versor

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the dragger tool and vector.js, then compare their rotation behavior with the linked D3 versor-dragging examples. Determine the expected quaternion-based interaction and whether the versor library is suitable; the work is done when the desired behavior and implementation scope are established and verified against those examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.