Camera.h 648 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef IGL_CAMERA_H
  2. #define IGL_CAMERA_H
  3. #include "igl_inline.h"
  4. // Simple Camera class
  5. namespace igl
  6. {
  7. class Camera
  8. {
  9. // Public Fields
  10. public:
  11. // Rotation as quaternion (0,0,0,1) is identity
  12. double rotation[4];
  13. // Translation of origin
  14. double pan[3];
  15. // Zoom scale
  16. double zoom;
  17. // Perspective angle
  18. double angle;
  19. // Public functions
  20. public:
  21. Camera();
  22. // Copy constructor
  23. //
  24. // Inputs:
  25. // that other Camera to be copied
  26. Camera(const Camera & that);
  27. ~Camera(){}
  28. };
  29. };
  30. #ifdef IGL_HEADER_ONLY
  31. # include "Camera.cpp"
  32. #endif
  33. #endif