Skip to content
Snippets Groups Projects
Select Git revision
  • e286ee2ac67fb31aa6780ee68544cd04c8d09a1a
  • master default protected
  • develop
  • 4.22.1
  • 4.22.0
  • 1.5.0
  • 1.4.0
  • 1.3.0
  • 1.2.1
  • 1.2.0
  • 1.1.1
  • 1.1.0
  • 1.0.0
13 results

RwthVrTemplate.Build.cs

Blame
  • 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"});