Remove dead code

This commit is contained in:
Paul Mathieu 2021-12-17 06:13:07 -08:00
parent 963568bec1
commit 7503922451

View File

@ -1,42 +1,5 @@
import * as se3 from './se3'; import * as se3 from './se3';
/** Makes a square with constant z = 0.
*
* Face is oriented towards z+.
*/
function makeSquare() {
const vertices = [
// triangle 0
0.5, 0.5 , 0.0,
-0.5, 0.5, 0.0,
-0.5, -0.5, 0.0,
// triangle 1
0.5, 0.5, 0.0,
-0.5, -0.5, 0.0,
0.5, -0.5, 0.0,
];
// normals toward z+
const normals = [].concat(...Array(6).fill([0.0, 0.0, 1.0]));
const textures = [
0.99, 0.99,
0.01, 0.99,
0.01, 0.01,
0.99, 0.99,
0.01, 0.01,
0.99, 0.01,
];
return {
vertices,
normals,
textures,
};
}
function memoize(f) { function memoize(f) {
const memo = {}; const memo = {};