How works "convert" function from RealityFoundation package

very an entity in RealityKit has a method called: convert(::). Actually for me is very interesting how this method works which the following signature:

convert(direction: from:) Can someone describe which formula to use to calculate this?

How works "convert" function from RealityFoundation package
 
 
Q