Better documentation of normalizeRotate()
- Dominant language
- JavaScript
- Stars
- 10.7k
- Forks
- 407
- PR merge metrics
- No merged PRs in 30d
Description
How would I implement object.normalizeRotate()? do I just shove it in the lines of x,y,z rotations? I tried just pasting it as line 32. I tried checking if there were any codepen.io or jsfiddle or examples on the zdog site that would use normalizeRotate but no such luck.
https://codepen.io/dinkbat/pen/abYmYBg
I put it on line 32 as illo.normalizeRotate(TAU/8); after defining the const TAU. This does not seem to affect the rotation at all.
My goal is to always have 3 sides of the cube visible as it rotates, as one side starts to disappear, it'll start rotating the other way.
Also thank you for this library its fantastic! I just wish I could use it a bit better.
Contributor guide
Research direction
Start with the linked CodePen and inspect how normalizeRotate() is used around line 32, then review the Zdog documentation and examples for the relevant rotation API. Done should be documentation that explains where and how to call normalizeRotate() and demonstrates the intended rotating-cube behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100