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

Method fromTranslation

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

Source from the content-addressed store, hash-verified

1050 return Matrix3.from(c1 * axis.x * axis.x + c, c1 * axis.x * axis.y + s * axis.z, c1 * axis.x * axis.z - s * axis.y, c1 * axis.x * axis.y - s * axis.z, c1 * axis.y * axis.y + c, c1 * axis.y * axis.z + s * axis.x, c1 * axis.x * axis.z + s * axis.y, c1 * axis.y * axis.z - s * axis.x, c1 * axis.z * axis.z + c);
1051 }
1052 static fromTranslation(translation) {
1053 return Matrix3.from(1, 0, 0, 0, 1, 0, translation.x, translation.y, 1);
1054 }
1055 static fromScale(scale) {
1056 return this.fromNonuniformScale(scale, scale);
1057 }

Callers

nothing calls this directly

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected