Skip to content

Infinite loop on pooly defined matrix in UnitQuaternion::from_matrix. #1529

@lasdasdas

Description

@lasdasdas

This snippet manages to get the execution stuck when running. I know that the values are bad, but also an infinite loop might not be the most desirable outcome of this.

    fn infitite_loop() {
        let mut rot = na::SMatrix::<f64, 3,3>::zeros();
        rot.fill(f64::NAN);
        let _q = UnitQuaternion::from_matrix(&rot);
    }

If the behavior is intended, apologies then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions