"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PixelToSceneRayUC = void 0;
exports.pixelToSceneRay = pixelToSceneRay;
const core_1 = require("@vived/core");
class PixelToSceneRayUC extends core_1.AppObjectUC {
}
exports.PixelToSceneRayUC = PixelToSceneRayUC;
PixelToSceneRayUC.type = "PixelToSceneRayUC";
PixelToSceneRayUC.get = (appObjects) => (0, core_1.getSingletonComponent)(PixelToSceneRayUC.type, appObjects);
function pixelToSceneRay(pixelPos, appObjects) {
    const uc = PixelToSceneRayUC.get(appObjects);
    if (!uc) {
        appObjects.submitWarning("pixelToSceneRay", "Unable to find PixelToSceneRayUC");
        return core_1.ParametricLine.Forward();
    }
    return uc.pixelToSceneRay(pixelPos);
}
//# sourceMappingURL=PixelToSceneRayUC.js.map