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

Method transform

docs/app/js/sanddance-app.js:72294–72306  ·  view source on GitHub ↗
(vector, result)

Source from the content-addressed store, hash-verified

72292 return this.check();
72293 }
72294 transform(vector, result) {
72295 if (vector.length === 4) {
72296 result = _vec4.transformMat4(result || [
72297 -0,
72298 -0,
72299 -0,
72300 -0
72301 ], vector, this);
72302 (0, _validators.checkVector)(result, 4);
72303 return result;
72304 }
72305 return this.transformAsPoint(vector, result);
72306 }
72307 transformAsPoint(vector, result) {
72308 const { length } = vector;
72309 let out;

Callers

nothing calls this directly

Calls 1

transformAsPointMethod · 0.95

Tested by

no test coverage detected