dimforge / dimforge/nalgebra

Creating a UnitQuaternion from a Rotation3 of NaNs hangs forever

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

Description

MCVE to reproduce:

```rust
use std::f64::NAN;
use nalgebra::{UnitQuaternion, Rotation3};

fn main() {
let r_br: nalgebra::Matrix3 = nalgebra::Matrix3::new(
NAN, NAN, NAN,
NAN, NAN, NAN,
NAN, NAN, NAN,
);

let q =
UnitQuaternion::from_rotation_matrix(&Rotation3::from_matrix(&r_br)).into_inner();
println!("q: {q}");
}
```

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.