Bullet Collision Detection & Physics Library: btHeightfieldTerrainShape.cpp File Reference

Bullet Collision Detection & Physics Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Functions
btHeightfieldTerrainShape.cpp File Reference
`#include "btHeightfieldTerrainShape.h"`
`#include "LinearMath/btTransformUtil.h"`
Include dependency graph for btHeightfieldTerrainShape.cpp:

Go to the source code of this file.

## Classes
struct | ProcessTrianglesAction
struct | ProcessVBoundsAction

## Functions
static int | getQuantized (btScalar x)
static btHeightfieldTerrainShape::Range | minmaxRange (btScalar a, btScalar b, btScalar c)
template<typename Action_T >
void | gridRaycast (Action_T &quadAction, const btVector3 &beginPos, const btVector3 &endPos, int indices[3])
| Iterates through a virtual 2D grid of unit-sized square cells, and executes an action on each cell intersecting the given segment, ordered from begin to end.

## Function Documentation

## ◆ getQuantized()

static int getQuantized | ( | btScalar | x | ) |
| inlinestatic

Definition at line 279 of file btHeightfieldTerrainShape.cpp.

## ◆ gridRaycast()

template<typename Action_T >

void gridRaycast | ( | Action_T & | quadAction,
|  | const btVector3 & | beginPos,
|  | const btVector3 & | endPos,
|  | int | indices[3]
| ) |  |

Iterates through a virtual 2D grid of unit-sized square cells, and executes an action on each cell intersecting the given segment, ordered from begin to end.

Initially inspired by http://www.cse.yorku.ca/~amana/research/grid.pdf

Definition at line 517 of file btHeightfieldTerrainShape.cpp.

## ◆ minmaxRange()

static btHeightfieldTerrainShape::Range minmaxRange | ( | btScalar | a,
|  | btScalar | b,
|  | btScalar | c
| ) |  |
| static

Definition at line 291 of file btHeightfieldTerrainShape.cpp.