cross.lua 666 B

12345678910111213141516171819202122232425
  1. return {
  2. summary = 'Get the cross product with another vector.',
  3. description = [[
  4. Sets this vector to be equal to the cross product between this vector and another one. The
  5. new `v` will be perpendicular to both the old `v` and `u`.
  6. ]],
  7. arguments = {
  8. {
  9. name = 'u',
  10. type = 'Vec3',
  11. description = 'The vector to compute the cross product with.'
  12. }
  13. },
  14. returns = {
  15. {
  16. name = 'v',
  17. type = 'Vec3',
  18. description = 'The original vector, with the cross product as its values.'
  19. }
  20. },
  21. notes = 'The vectors are not normalized before or after computing the cross product.',
  22. related = {
  23. 'Vec3:dot'
  24. }
  25. }