Advertisement
tinyevil

Untitled

Jul 31st, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. function cross(r:&Vec3, v1:&const Vec3, v2:&const Vec3){
  2. r.x = v1.y * v2.z - v1.z * v2.y;
  3. r.y = v1.x * v2.z - v1.z * v2.x;
  4. r.z = v1.x * v2.y - v1.y * v2.x;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement