~choreonoid/choreonoid/debian

« back to all changes in this revision

Viewing changes to src/Collision/Opcode/OPC_Common.cpp

  • Committer: Thomas Moulard
  • Date: 2012-10-23 12:43:24 UTC
  • Revision ID: git-v1:351cf736ad49bc7a9a7b9767dee760a013517a5d
Tags: upstream/1.1.0
ImportedĀ UpstreamĀ versionĀ 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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;