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

Function createMat4

docs/app/js/sanddance-app.js:80209–80228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80207parcelHelpers.export(exports, "log2", ()=>log2);
80208var _vec4 = require("gl-matrix/vec4");
80209function createMat4() {
80210 return [
80211 1,
80212 0,
80213 0,
80214 0,
80215 0,
80216 1,
80217 0,
80218 0,
80219 0,
80220 0,
80221 1,
80222 0,
80223 0,
80224 0,
80225 0,
80226 1
80227 ];
80228}
80229function transformVector(matrix, vector) {
80230 const result = (0, _vec4.transformMat4)([], vector, matrix);
80231 (0, _vec4.scale)(result, result, 1 / result[3]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected