diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/public/vgui/Point.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/public/vgui/Point.h')
| -rw-r--r-- | sp/src/public/vgui/Point.h | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/sp/src/public/vgui/Point.h b/sp/src/public/vgui/Point.h index 8e23f022..96cd64d1 100644 --- a/sp/src/public/vgui/Point.h +++ b/sp/src/public/vgui/Point.h @@ -1,61 +1,61 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef POINT_H
-#define POINT_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <vgui/VGUI.h>
-
-namespace vgui
-{
-
-//-----------------------------------------------------------------------------
-// Purpose: Basic handler for a Points in 2 dimensions
-// This class is fully inline
-//-----------------------------------------------------------------------------
-class Point
-{
-public:
- // constructors
- Point()
- {
- SetPoint(0, 0);
- }
- Point(int x,int y)
- {
- SetPoint(x,y);
- }
-
- void SetPoint(int x1, int y1)
- {
- x=x1;
- y=y1;
- }
-
- void GetPoint(int &x1, int &y1) const
- {
- x1 = x;
- y1 = y;
-
- }
-
- bool operator == (Point &rhs) const
- {
- return (x == rhs.x && y == rhs.y);
- }
-
-private:
- int x, y;
-};
-
-} // namespace vgui
-
-#endif // POINT_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef POINT_H +#define POINT_H + +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui/VGUI.h> + +namespace vgui +{ + +//----------------------------------------------------------------------------- +// Purpose: Basic handler for a Points in 2 dimensions +// This class is fully inline +//----------------------------------------------------------------------------- +class Point +{ +public: + // constructors + Point() + { + SetPoint(0, 0); + } + Point(int x,int y) + { + SetPoint(x,y); + } + + void SetPoint(int x1, int y1) + { + x=x1; + y=y1; + } + + void GetPoint(int &x1, int &y1) const + { + x1 = x; + y1 = y; + + } + + bool operator == (Point &rhs) const + { + return (x == rhs.x && y == rhs.y); + } + +private: + int x, y; +}; + +} // namespace vgui + +#endif // POINT_H |