Code/Framework/AzToolsFramework/Tests/Viewport/ViewportScreenTests.cpp
AzFramework::ScreenPoint ScreenToWorldToScreen(const AzFramework::ScreenPoint& screenPoint, const AzFramework::CameraState& cameraState)
    {
        const auto worldResult = AzFramework::ScreenToWorld(screenPoint, cameraState);
        return AzFramework::WorldToScreen(worldResult, cameraState);
    }
// transform a point from screen space to world space, and then from world space back to screen space
transform a point from screen space to world space, and then from world space back to screen space
transform a point from screen space to world space and then from world space back to screen space
AzFramework::ScreenPoint ScreenToWorldToScreen(const AzFramework::ScreenPoint& screenPoint, const AzFramework::CameraState& cameraState)
    {
        const auto worldResult = AzFramework::ScreenToWorld(screenPoint, cameraState);
        return AzFramework::WorldToScreen(worldResult, cameraState);
    }
AzFramework :: ScreenPoint ScreenToWorldToScreen ( const AzFramework :: ScreenPoint & screenPoint , const AzFramework :: CameraState & cameraState ) { const auto worldResult = AzFramework :: ScreenToWorld ( screenPoint , cameraState ) ; return AzFramework :: WorldToScreen ( worldResult , cameraState ) ; }
transform a point from screen space to world space, and then from world space back to screen space
transform a point from screen space to world space and then from world space back to screen space