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