Guest User

Untitled

a guest
Jul 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. var in = vec3.create([1, 2, 3]);
  2.  
  3. //overwrite 'in' in-place
  4. vec3.scale(in, 2);
  5.  
  6. //write output to a different vector
  7. var out = vec3.create();
  8. vec3.scale(in, 2, out);
Add Comment
Please, Sign In to add comment