You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

voxelmath.h 863B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * =====================================================================================
  3. *
  4. * Filename: voxelmath.h
  5. *
  6. * Description: Voxel math class used in world
  7. *
  8. * Version: 1.0
  9. * Created: 04/07/2014 03:44:24 PM
  10. * Revision: none
  11. * Compiler: gcc
  12. *
  13. * Author: YOUR NAME (),
  14. * Organization:
  15. *
  16. * =====================================================================================
  17. */
  18. #pragma once
  19. #include "voxelutils.h"
  20. #include <glm/glm.hpp>
  21. namespace vtk {
  22. class World;
  23. class VoxelMath {
  24. public:
  25. void rayCast(glm::vec3& hitPos, glm::vec3& hitNormal, bool& success,
  26. const glm::vec3& origin, const glm::vec3& direction, const float& radius);
  27. iPos getChunkContaining(const int& x, const int& y, const int& z);
  28. World* linkedWorld;
  29. protected:
  30. };
  31. }