#include "GenUtils.h"
#include <sstream>
Go to the source code of this file.
Defines | |
#define | MAXB 0x100 |
#define | N 0x1000 |
#define | NP 12 |
#define | NM 0xfff |
#define | s_curve(t) ( t * t * (3. - 2. * t) ) |
#define | lerp(t, a, b) ( a + t * (b - a) ) |
#define | setup(i, b0, b1, r0, r1) |
#define | at2(rx, ry) ( rx * q[0] + ry * q[1] ) |
#define | at3(rx, ry, rz) ( rx * q[0] + ry * q[1] + rz * q[2] ) |
Variables | |
static int | p [MAXB+MAXB+2] |
static double | g3 [MAXB+MAXB+2][3] |
static double | g2 [MAXB+MAXB+2][2] |
static double | g1 [MAXB+MAXB+2] |
int | start = 1 |
int | B = 4 |
int | BM = 3 |
#define at2 | ( | rx, | |||
ry | ) | ( rx * q[0] + ry * q[1] ) |
Definition at line 231 of file GenUtils.cpp.
#define at3 | ( | rx, | |||
ry, | |||||
rz | ) | ( rx * q[0] + ry * q[1] + rz * q[2] ) |
Definition at line 232 of file GenUtils.cpp.
#define lerp | ( | t, | |||
a, | |||||
b | ) | ( a + t * (b - a) ) |
Definition at line 224 of file GenUtils.cpp.
#define MAXB 0x100 |
Definition at line 218 of file GenUtils.cpp.
#define N 0x1000 |
Definition at line 219 of file GenUtils.cpp.
#define NM 0xfff |
Definition at line 221 of file GenUtils.cpp.
#define NP 12 |
Definition at line 220 of file GenUtils.cpp.
#define s_curve | ( | t | ) | ( t * t * (3. - 2. * t) ) |
Definition at line 223 of file GenUtils.cpp.
#define setup | ( | i, | |||
b0, | |||||
b1, | |||||
r0, | |||||
r1 | ) |
Value:
Definition at line 225 of file GenUtils.cpp.
int B = 4 |
Definition at line 240 of file GenUtils.cpp.
int BM = 3 |
Definition at line 241 of file GenUtils.cpp.
double g1[MAXB+MAXB+2] [static] |
Definition at line 237 of file GenUtils.cpp.
double g2[MAXB+MAXB+2][2] [static] |
double g3[MAXB+MAXB+2][3] [static] |
Definition at line 235 of file GenUtils.cpp.
int p[MAXB+MAXB+2] [static] |
int start = 1 |