Blender V4.3
context_begin.h File Reference

Go to the source code of this file.

Macros

#define SET_CUBIC_SPLINE_WEIGHTS(u, t)

Macro Definition Documentation

◆ SET_CUBIC_SPLINE_WEIGHTS

#define SET_CUBIC_SPLINE_WEIGHTS ( u,
t )
Value:
{ \
u[0] = (((-1.0f / 6.0f) * t + 0.5f) * t - 0.5f) * t + (1.0f / 6.0f); \
u[1] = ((0.5f * t - 1.0f) * t) * t + (2.0f / 3.0f); \
u[2] = ((-0.5f * t + 0.5f) * t + 0.5f) * t + (1.0f / 6.0f); \
u[3] = (1.0f / 6.0f) * t * t * t; \
} \
(void)0