M public/index.html => public/index.html +2 -0
@@ 173,6 173,8 @@
}
}
</style>
+ <!-- TODO: compile JS properly -->
+ <script src="https://unpkg.com/mathjs@9.3.2/lib/browser/math.js"></script>
<script src="/script.js"></script>
</head>
<body>
M public/script.js => public/script.js +4 -0
@@ 487,6 487,10 @@ function execAction(id, slow) {
stateUpdated();
}
+function matrix() {
+ return math.matrix([[state.ihat[0], state.jhat[0]], [state.ihat[1], state.jhat[1]]]);
+}
+
document.addEventListener("DOMContentLoaded", () => {
can = document.getElementById("transform-canvas");
ctx = can.getContext("2d");