Panda3D
Macros
particleCommonFuncs.h File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

Go to the source code of this file.

Macros

#define CLERP(t, X0, X1)   LERP(CUBIC_T(t), (X0), (X1))
 
#define CUBIC_T(t)   ((t)*(t)*(3-(2*(t))))
 
#define I_SPREAD(magnitude)   ((magnitude) - ((int)rand() % ((2*(magnitude))+1)))
 
#define LERP(t, X0, X1)   ((X0) + ((t) * ((X1) - (X0))))
 
#define NORMALIZED_RAND()   ((PN_stdfloat)rand() / (PN_stdfloat)RAND_MAX)
 
#define SPREAD(magnitude)   ((magnitude) - (NORMALIZED_RAND() * 2.0f * (magnitude)))
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
darren
Date
2000-10-02

Definition in file particleCommonFuncs.h.