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

Method fromAngle

examples/extern/gmath.bundle.js:832–835  ·  view source on GitHub ↗
(theta)

Source from the content-addressed store, hash-verified

830 return new Matrix2(new Vector2(c0r0, c0r1), new Vector2(c1r0, c1r1));
831 }
832 static fromAngle(theta) {
833 const [s, c] = theta.sincos();
834 return Matrix2.from(c, s, -s, c);
835 }
836 static identity() {
837 return Matrix2.from(1, 0, 0, 1);
838 }

Callers 1

fromDecomposedMethod · 0.80

Calls 2

sincosMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected