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.
 
 
 

32 lines
482 B

  1. //
  2. // Deus Hax (working title)
  3. // Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
  4. //
  5. //
  6. // The Matrix classes
  7. // ------------------
  8. //
  9. #if !defined __DH_MATRIX_H__
  10. #define __DH_MATRIX_H__
  11. struct Float2
  12. {
  13. Float2() { x = y = 0.0f; }
  14. Float2(float _x, float _y) { x = _x; y = _y; }
  15. float x, y;
  16. };
  17. struct Float3
  18. {
  19. Float3() { x = y = z = 0.0f; }
  20. Float3(float _x, float _y, float _z) { x = _x; y = _y; z = _z; }
  21. float x, y, z;
  22. };
  23. #endif // __DH_MATRIX_H__