init.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. -------------------------------------------------------------------------------
  3. -- @author Colby Klein
  4. -- @author Landon Manning
  5. -- @copyright 2016
  6. -- @license MIT/X11
  7. -------------------------------------------------------------------------------
  8. .'@@@@@@@@@@@@@@#:
  9. ,@@@@#; .'@@@@+
  10. ,@@@' .@@@#
  11. +@@+ .... .@@@
  12. ;@@; '@@@@@@@@@@@@. @@@
  13. @@# @@@@@@@@++@@@@@@@; `@@;
  14. .@@` @@@@@# #@@@@@ @@@
  15. `@@ @@@@@` Cirno's `@@@@# +@@
  16. @@ `@@@@@ Perfect @@@@@ @@+
  17. @@+ ;@@@@+ Math +@@@@+ @@
  18. @@ `@@@@@ Library @@@@@@ #@'
  19. `@@ @@@@@@ @@@@@@@ `@@
  20. :@@ #@@@@@@. .@@@@@@@@@ @@
  21. .@@ #@@@@@@@@@@@@;;@@@@@ @@
  22. @@ .;+@@#'. ;@@@@@ :@@
  23. @@` +@@@@+ @@.
  24. ,@@ @@@@@ .@@
  25. @@# ;;;;;. `@@@@@ @@
  26. @@+ .@@@@@ @@@@@ @@`
  27. #@@ '@@@@@#` ;@@@@@@ ;@@
  28. .@@' @@@@@@@@@@@@@@@ @@#
  29. +@@' '@@@@@@@; @@@
  30. '@@@` '@@@
  31. #@@@; .@@@@:
  32. :@@@@@@@++;;;+#@@@@@@+`
  33. .;'+++++;.
  34. --]]
  35. local modules = (...) and (...):gsub('%.init$', '') .. ".modules." or ""
  36. local cpml = {
  37. _LICENSE = "CPML is distributed under the terms of the MIT license. See LICENSE.md.",
  38. _URL = "https://github.com/excessive/cpml",
  39. _VERSION = "1.2.9",
  40. _DESCRIPTION = "Cirno's Perfect Math Library: Just about everything you need for 3D games. Hopefully."
  41. }
  42. local files = {
  43. "color",
  44. "constants",
  45. "intersect",
  46. "mat4",
  47. "mesh",
  48. "octree",
  49. "quat",
  50. "simplex",
  51. "utils",
  52. "vec2",
  53. "vec3",
  54. }
  55. for _, file in ipairs(files) do
  56. cpml[file] = require(modules .. file)
  57. end
  58. return cpml