OPC_Common.cpp 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. /*
  3. * OPCODE - Optimized Collision Detection
  4. * Copyright (C) 2001 Pierre Terdiman
  5. * Homepage: http://www.codercorner.com/Opcode.htm
  6. */
  7. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  8. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  9. /**
  10. * Contains common classes & defs used in OPCODE.
  11. * \file OPC_Common.cpp
  12. * \author Pierre Terdiman
  13. * \date March, 20, 2001
  14. */
  15. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  16. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  17. /**
  18. * An AABB dedicated to collision detection.
  19. * We don't use the generic AABB class included in ICE, since it can be a Min/Max or a Center/Extents one (depends
  20. * on compilation flags). Since the Center/Extents model is more efficient in collision detection, it was worth
  21. * using an extra special class.
  22. *
  23. * \class CollisionAABB
  24. * \author Pierre Terdiman
  25. * \version 1.3
  26. * \date March, 20, 2001
  27. */
  28. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  29. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  30. /**
  31. * A quantized AABB.
  32. * Center/Extent model, using 16-bits integers.
  33. *
  34. * \class QuantizedAABB
  35. * \author Pierre Terdiman
  36. * \version 1.3
  37. * \date March, 20, 2001
  38. */
  39. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  40. ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  41. #include "Opcode.h"
  42. using namespace Opcode;