![]() |
Ball and Spring Toy
Chapter 4 of Ian Parberry's "Introduction to Game Physics with Box2D"
|
Code for the spring class CSpring. More...
#include "Springs.h"Functions | |
| float | clip (float a, float b, float c) |
Variables | |
| int | g_nScreenWidth |
| int | g_nScreenHeight |
Code for the spring class CSpring.
|
inline |
Clip function.
| a | Smallest allowable value. |
| b | Value to be clipped. |
| c | Largest allowable value. |
1.8.2