DPoint.cpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. BobToolz plugin for GtkRadiant
  3. Copyright (C) 2001 Gordon Biggans
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with this library; if not, write to the Free Software
  14. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  15. */
  16. // DPoint.cpp: implementation of the DPoint class.
  17. //
  18. //////////////////////////////////////////////////////////////////////
  19. #include "StdAfx.h"
  20. #include "DPoint.h"
  21. //////////////////////////////////////////////////////////////////////
  22. // Construction/Destruction
  23. //////////////////////////////////////////////////////////////////////
  24. DPoint::DPoint()
  25. {
  26. }
  27. DPoint::~DPoint()
  28. {
  29. }
  30. //////////////////////////////////////////////////////////////////////
  31. // Implementation
  32. //////////////////////////////////////////////////////////////////////
  33. bool DPoint::operator ==(vec3_t other)
  34. {
  35. vec3_t test;
  36. VectorSubtract(other, _pnt, test);
  37. if(fabs(VectorLength(test)) > MAX_ROUND_ERROR)
  38. return FALSE;
  39. return TRUE;
  40. }