From 3bf9df6b2785fa6d951086978a3e66f49427166a Mon Sep 17 00:00:00 2001 From: FluorescentCIAAfricanAmerican <0934gj3049fk@protonmail.com> Date: Wed, 22 Apr 2020 12:56:21 -0400 Subject: 1 --- hammer/mappoint.cpp | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 hammer/mappoint.cpp (limited to 'hammer/mappoint.cpp') 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 + + +//----------------------------------------------------------------------------- +// 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 ); +} + -- cgit v1.2.3