summaryrefslogtreecommitdiff
path: root/hammer/mappoint.cpp
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/mappoint.cpp
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'hammer/mappoint.cpp')
-rw-r--r--hammer/mappoint.cpp53
1 files changed, 53 insertions, 0 deletions
diff --git a/hammer/mappoint.cpp b/hammer/mappoint.cpp
new file mode 100644
index 0000000..d821172
--- /dev/null
+++ b/hammer/mappoint.cpp
@@ -0,0 +1,53 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#include "stdafx.h"
+#include "Box3D.h"
+#include "MapDefs.h" // for COORD_NOTINIT
+#include "MapPoint.h"
+#include "hammer_mathlib.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include <tier0/memdbgon.h>
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Constructor. Initializes the origin point to all zeros.
+//-----------------------------------------------------------------------------
+CMapPoint::CMapPoint(void)
+{
+ m_Origin.Init();
+}
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Returns this point's X, Y, Z coordinates.
+//-----------------------------------------------------------------------------
+void CMapPoint::GetOrigin(Vector &Origin)
+{
+ Origin = m_Origin;
+}
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Sets this point's X, Y, Z coordinates.
+//-----------------------------------------------------------------------------
+void CMapPoint::SetOrigin(Vector &Origin)
+{
+ m_Origin = Origin;
+}
+
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : pTransBox -
+//-----------------------------------------------------------------------------
+void CMapPoint::DoTransform(const VMatrix &matrix)
+{
+ TransformPoint( matrix, m_Origin );
+}
+