Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/re_types/definitions/rerun/datatypes/quaternion.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ namespace rerun.datatypes;
// ---

/// A Quaternion represented by 4 real numbers.
///
/// Note: although the x,y,z,w components of the quaternion will be passed through to the
/// datastore as provided, when used in the viewer Quaternions will always be normalized.
//
// Expectations:
struct Quaternion (
Expand Down
2 changes: 1 addition & 1 deletion crates/re_types/source_hash.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions crates/re_types/src/datatypes/quaternion.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/re_types/src/datatypes/quaternion_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl From<Quaternion> for glam::Quat {
#[inline]
fn from(q: Quaternion) -> Self {
let [x, y, z, w] = q.0;
Self::from_xyzw(x, y, z, w)
Self::from_xyzw(x, y, z, w).normalize()
}
}

Expand Down
3 changes: 3 additions & 0 deletions rerun_cpp/src/rerun/datatypes/quaternion.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion rerun_py/rerun_sdk/rerun/_rerun2/datatypes/quaternion.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.