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