Revision 14, 389 bytes
(checked in by jgaeddert, 16 years ago)
|
adding utility functions, basic concept; not yet functional
|
Line | |
---|
1 | // |
---|
2 | // Generic utility functions |
---|
3 | // |
---|
4 | |
---|
5 | #define UTIL_SHAPE_BELL 0 |
---|
6 | #define UTIL_SHAPE_RAMP 1 |
---|
7 | |
---|
8 | #define UTIL_REL_LIN 0 |
---|
9 | #define UTIL_REL_LOG 1 |
---|
10 | |
---|
11 | #define UTIL_MAX 0 |
---|
12 | #define UTIL_MIN 1 |
---|
13 | |
---|
14 | typedef struct utility_s * utility; |
---|
15 | |
---|
16 | utility utility_create(float _target, int _shape, int _scale, int _minmax); |
---|
17 | void utility_free(utility _u); |
---|
18 | |
---|
19 | float utility_evaluate(utility _u, float _x); |
---|
20 | |
---|
21 | |
---|