Counter Strike : Global Offensive Source Code
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.

40 lines
1.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Defines a base set of services for operations in an orthorgraphic
  4. // projection. This is used as a base class for the 2D view and for
  5. // the tools that work in the 2D views.
  6. //
  7. // $NoKeywords: $
  8. //=============================================================================//
  9. #ifndef AXES2_H
  10. #define AXES2_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. #include "hammer_mathlib.h"
  15. class Axes2
  16. {
  17. public:
  18. Axes2()
  19. {
  20. bInvertHorz = bInvertVert = false;
  21. axHorz = AXIS_X;
  22. axVert = AXIS_Y;
  23. axThird = AXIS_Z;
  24. }
  25. void SetAxes(int h, bool bInvertH, int v, bool bInvertV);
  26. void SetAxes(Axes2 &axes);
  27. bool bInvertHorz; // Whether the horizontal axis is inverted.
  28. bool bInvertVert; // Whether the vertical axis is inverted.
  29. int axHorz; // Index of the horizontal axis (x=0, y=1, z=2)
  30. int axVert; // Index of the vertical axis (x=0, y=1, z=2)
  31. int axThird; // Index of the "out of the screen" axis (x=0, y=1, z=2)
  32. };
  33. #endif // AXES2_H