| 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 | /** |
|---|
| 11 | * Contains common classes & defs used in OPCODE. |
|---|
| 12 | * \file OPC_Common.cpp |
|---|
| 13 | * \author Pierre Terdiman |
|---|
| 14 | * \date March, 20, 2001 |
|---|
| 15 | */ |
|---|
| 16 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
|---|
| 17 | |
|---|
| 18 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
|---|
| 19 | /** |
|---|
| 20 | * An AABB dedicated to collision detection. |
|---|
| 21 | * We don't use the generic AABB class included in ICE, since it can be a Min/Max or a Center/Extents one (depends |
|---|
| 22 | * on compilation flags). Since the Center/Extents model is more efficient in collision detection, it was worth |
|---|
| 23 | * using an extra special class. |
|---|
| 24 | * |
|---|
| 25 | * \class CollisionAABB |
|---|
| 26 | * \author Pierre Terdiman |
|---|
| 27 | * \version 1.3 |
|---|
| 28 | * \date March, 20, 2001 |
|---|
| 29 | */ |
|---|
| 30 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
|---|
| 31 | |
|---|
| 32 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
|---|
| 33 | /** |
|---|
| 34 | * A quantized AABB. |
|---|
| 35 | * Center/Extent model, using 16-bits integers. |
|---|
| 36 | * |
|---|
| 37 | * \class QuantizedAABB |
|---|
| 38 | * \author Pierre Terdiman |
|---|
| 39 | * \version 1.3 |
|---|
| 40 | * \date March, 20, 2001 |
|---|
| 41 | */ |
|---|
| 42 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
|---|
| 43 | |
|---|
| 44 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
|---|
| 45 | // Precompiled Header |
|---|
| 46 | #include "Stdafx.h" |
|---|
| 47 | |
|---|
| 48 | using namespace Opcode; |
|---|