dimforge / dimforge/nalgebra

Provide basis unit quaternions i j k

Open
#293 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

Unless I'm missing something in the documentation, it appears there isn't any equivalent to `Vector3::x_axis()`, etc for `UnitQuaternion`s. The only way to construct `i` `j` and `k` without costly normalizations seems to be to use `new_unchecked`, as in `UnitQuaternion::new_unchecked(Quaternion::new(0.0, 1.0, 0.0, 0.0))`. It would be convenient to have static functions like `UnitQuaternion::i()` for this purpose.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.