(theta)
| 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 | } |
no test coverage detected