MCPcopy Index your code
hub / github.com/plotly/plotly.js / xformMatrix

Function xformMatrix

src/plots/gl3d/project.js:3–14  ·  view source on GitHub ↗
(m, v)

Source from the content-addressed store, hash-verified

1'use strict';
2
3function xformMatrix(m, v) {
4 var out = [0, 0, 0, 0];
5 var i, j;
6
7 for(i = 0; i < 4; ++i) {
8 for(j = 0; j < 4; ++j) {
9 out[j] += m[4 * i + j] * v[i];
10 }
11 }
12
13 return out;
14}
15
16function project(camera, v) {
17 var p = xformMatrix(camera.projection,

Callers 1

projectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…