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

Method fromScale

examples/extern/gmath.bundle.js:1055–1057  ·  view source on GitHub ↗
(scale)

Source from the content-addressed store, hash-verified

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 }
1058 static fromNonuniformScale(x, y) {
1059 return Matrix3.from(x, 0, 0, 0, y, 0, 0, 0, 1);
1060 }

Callers

nothing calls this directly

Calls 1

fromNonuniformScaleMethod · 0.95

Tested by

no test coverage detected