MCPcopy Create free account
hub / github.com/DjDeveloperr/deno_desktop / fromTranslation

Method fromTranslation

examples/extern/gmath.bundle.js:1315–1317  ·  view source on GitHub ↗
(translation)

Source from the content-addressed store, hash-verified

1313 return Matrix4.from(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
1314 }
1315 static fromTranslation(translation) {
1316 return Matrix4.from(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, translation.x, translation.y, translation.z, 1);
1317 }
1318 static fromScale(scale) {
1319 return this.fromNonuniformScale(scale, scale);
1320 }

Callers

nothing calls this directly

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected