Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.16 KB | None | 0 0
  1. -- Create a vector v that is the point (1,2)
  2. v = {x = 1, y = 2}
  3.  
  4. -- Find the norm of vector v.
  5. vHat = {x = v.x/sqrt(v.x^2+v.y^2) , y = v.y/sqrt(v.x^2+v.y^2)}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement