Add mat4.multQuat
Open
Nobody has claimed this yet.
type/feat
- Dominant language
- JavaScript
- Stars
- 17
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
When creating modelMatrix from rotation in pex-renderer i'm missing the following function
var tempMat4multQuatMat4 = mat4.create();
function mat4multQuat(m, q) {
mat4.fromQuat(tempMat4multQuatMat4, q);
mat4.mult(m, tempMat4multQuatMat4);
return m;
}
Do you think it would be worth adding?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the mat4 implementation and the existing fromQuat and mult operations in this repository. Compare their APIs with the issue's proposed mat4multQuat helper, then determine where the new operation belongs and verify that multiplying a matrix by a quaternion-derived rotation produces the expected result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100