Classes | Functions
OPC_SweepAndPrune.cpp File Reference
#include "Stdafx.h"
Include dependency graph for OPC_SweepAndPrune.cpp:

Go to the source code of this file.

Classes

class  Opcode::SAP_Box
 
class  Opcode::SAP_Element
 
class  Opcode::SAP_EndPoint
 

Functions

inline_ BOOL Intersect (const AABB &a, const SAP_Box &b)
 
inline_ void Remap (SAP_Element *&element, udword delta)
 
inline_ void Sort (udword &id0, udword &id1)
 

Detailed Description

Contains an implementation of the sweep-and-prune algorithm (moved from Z-Collide)

Author
Pierre Terdiman
Date
January, 29, 2000

Definition in file OPC_SweepAndPrune.cpp.

Function Documentation

◆ Intersect()

inline_ BOOL Intersect ( const AABB a,
const SAP_Box b 
)

Definition at line 522 of file OPC_SweepAndPrune.cpp.

◆ Remap()

inline_ void Remap ( SAP_Element *&  element,
udword  delta 
)

Remaps a pointer when pool gets resized.

Parameters
element[in/out] remapped element
delta[in] offset in bytes

Definition at line 165 of file OPC_SweepAndPrune.cpp.

◆ Sort()

inline_ void Sort ( udword id0,
udword id1 
)

Definition at line 24 of file OPC_SweepAndPrune.cpp.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:05