fn cuboid_corner_bevel_rotation() -> [Quat; 7] {
    let y_rot = Quat::from_rotation_y;
    let z_rot = Quat::from_rotation_z;
    let x_rot = Quat::from_rotation_x;
    [
        y_rot(-FRAC_PI_2),
        y_rot(-FRAC_PI_2),
        y_rot(-FRAC_PI_2),
        z_rot(-FRAC_PI_2),
        x_rot(FRAC_PI_2),
        x_rot(FRAC_PI_2),
        x_rot(FRAC_PI_2),
    ]
}
// Picture picking a rounded corner and fitting it to a corner of a cube. You
// then rotate it to fit the next corner, each one after the other. The
// sequence of corners is specified by `cuboid_vertex()`, this returns the
// rotations you need to execute at each step.
Picture picking a rounded corner and fitting it to a corner of a cube. You
then rotate it to fit the next corner, each one after the other. The
sequence of corners is specified by `cuboid_vertex()`, this returns the
rotations you need to execute at each step.
Picture picking a rounded corner and fitting it to a corner of a cube . You then rotate it to fit the next corner each one after the other . The sequence of corners is specified by ` cuboid_vertex () ` this returns the rotations you need to execute at each step .
fn cuboid_corner_bevel_rotation() -> [Quat; 7] {
    let y_rot = Quat::from_rotation_y;
    let z_rot = Quat::from_rotation_z;
    let x_rot = Quat::from_rotation_x;
    [
        y_rot(-FRAC_PI_2),
        y_rot(-FRAC_PI_2),
        y_rot(-FRAC_PI_2),
        z_rot(-FRAC_PI_2),
        x_rot(FRAC_PI_2),
        x_rot(FRAC_PI_2),
        x_rot(FRAC_PI_2),
    ]
}
fn cuboid_corner_bevel_rotation ( ) -> [ Quat ; 7 ] { let y_rot = Quat :: from_rotation_y ; let z_rot = Quat :: from_rotation_z ; let x_rot = Quat :: from_rotation_x ; [ y_rot ( - FRAC_PI_2 ) , y_rot ( - FRAC_PI_2 ) , y_rot ( - FRAC_PI_2 ) , z_rot ( - FRAC_PI_2 ) , x_rot ( FRAC_PI_2 ) , x_rot ( FRAC_PI_2 ) , x_rot ( FRAC_PI_2 ) , ] }
Picture picking a rounded corner and fitting it to a corner of a cube.
Picture picking a rounded corner and fitting it to a corner of a cube .