MCPcopy Create free account
hub / github.com/microsoft/SandDance / getViewportCenterPosition

Function getViewportCenterPosition

docs/app/js/sanddance-app.js:79769–79772  ·  view source on GitHub ↗
(_ref)

Source from the content-addressed store, hash-verified

79767 ];
79768}
79769function getViewportCenterPosition(_ref) {
79770 var viewport = _ref.viewport, center = _ref.center;
79771 return new (0, _mathGl.Matrix4)(viewport.viewProjectionMatrix).invert().transform(center);
79772}
79773function getViewProjectionMatrices(_ref2) {
79774 var viewport = _ref2.viewport, shadowMatrices = _ref2.shadowMatrices;
79775 var projectionMatrices = [];

Callers

nothing calls this directly

Calls 2

transformMethod · 0.45
invertMethod · 0.45

Tested by

no test coverage detected