wonder.js
Version:
25 lines (20 loc) • 1.32 kB
JavaScript
;
var Log$WonderLog = require("wonder-log/lib/js/src/Log.js");
var Contract$WonderLog = require("wonder-log/lib/js/src/Contract.js");
var StateDataMain$Wonderjs = require("../state/main/data/StateDataMain.js");
var Matrix4Service$Wonderjs = require("../atom/Matrix4Service.js");
var IsDebugMainService$Wonderjs = require("../state/main/state/IsDebugMainService.js");
var MutableSparseMapService$WonderCommonlib = require("wonder-commonlib/lib/js/src/MutableSparseMapService.js");
function unsafeGetPMatrix(index, pMatrixMap) {
return Contract$WonderLog.ensureCheck((function (pMatrix) {
return Contract$WonderLog.test(Log$WonderLog.buildAssertMessage("pMatrix exist", "not"), (function (param) {
return Contract$WonderLog.assertNullableExist(pMatrix);
}));
}), IsDebugMainService$Wonderjs.getIsDebug(StateDataMain$Wonderjs.stateData), MutableSparseMapService$WonderCommonlib.unsafeGet(index, pMatrixMap));
}
function setDefaultPMatrix(index, pMatrixMap) {
return MutableSparseMapService$WonderCommonlib.set(index, Matrix4Service$Wonderjs.createIdentityMatrix4(/* () */0), pMatrixMap);
}
exports.unsafeGetPMatrix = unsafeGetPMatrix;
exports.setDefaultPMatrix = setDefaultPMatrix;
/* Log-WonderLog Not a pure module */