Select Git revision
cppcheck.cmake
testing.ts 394 B
import Playground from "./playground";
import { vecNormalize } from "./utils";
import { vecLength } from "./utils";
const pg = new Playground();
// Some vectors
const v = [2,2,3]
const normalized = vecNormalize(v);
console.log(vecLength(normalized));
// Visualize
pg.gridXZ(); // Grid
pg.visVector(v,{color:"orange",label:"V"});
pg.visVector(normalized,{color:"red",label:"normalized"});