pub fn rotation_matrix_from_dir_to_dir(source_dir: Vec3, target_dir: Vec3) -> Mat4 {
    Mat4::from(Mat3::from(cgmath::Basis3::between_vectors(
        source_dir, target_dir,
    )))
}
///
/// Constructs a rotation matrix that rotates from the source direction to the target direction.
///
Constructs a rotation matrix that rotates from the source direction to the target direction.
Constructs a rotation matrix that rotates from the source direction to the target direction .
pub fn rotation_matrix_from_dir_to_dir(source_dir: Vec3, target_dir: Vec3) -> Mat4 {
    Mat4::from(Mat3::from(cgmath::Basis3::between_vectors(
        source_dir, target_dir,
    )))
}
pub fn rotation_matrix_from_dir_to_dir ( source_dir : Vec3 , target_dir : Vec3 ) -> Mat4 { Mat4 :: from ( Mat3 :: from ( cgmath :: Basis3 :: between_vectors ( source_dir , target_dir , ) ) ) }
Constructs a rotation matrix that rotates from the source direction to the target direction.
Constructs a rotation matrix that rotates from the source direction to the target direction .
source_dir
Vec3
target_dir
Vec3
source_dir
Vec3
target_dir
Vec3