SSBM Decomp
Loading...
Searching...
No Matches
spline.h
Go to the documentation of this file.
1#ifndef SYSDOLPHIN_BASELIB_SPLINE_H
2#define SYSDOLPHIN_BASELIB_SPLINE_H
3
4#include <dat_macros.h>
5
6#include <dolphin/mtx.h>
7
8typedef struct HSD_Spline {
9 /* +0 */ u8 type;
10 /* +2 */ s16 numcv;
11 /* +4 */ f32 tension;
13 /* +8 */ Vec3* cv DAT_COUNT(numcv + 2 * (type != 0));
14 /* +C */ f32 totalLength;
15 /* +10 */ f32* segLength DAT_COUNT(numcv);
16 /* +14 */ f32 (*segPoly)[5] DAT_COUNT(numcv - 1);
18
23
24#endif
Annotations describing how archive data is laid out, for the parts a C declaration cannot express: ho...
struct Vec Vec3
signed short int s16
Definition types.h:6
float f32
Definition types.h:18
unsigned char u8
Definition types.h:5
void splGetSplinePoint(Vec3 *, HSD_Spline *, f32)
Definition spline.c:82
f32 splArcLengthGetParameter(HSD_Spline *, f32)
Definition spline.c:178
void splArcLengthPoint(Vec3 *, HSD_Spline *, f32)
Definition spline.c:235
f32 splGetHelmite(f32, f32, f32, f32, f32, f32)
Definition spline.c:9
Definition spline.h:8
u8 type
Definition spline.h:9
f32 *segLength DAT_COUNT(numcv)
f32 tension
Definition spline.h:11
f32(*segPoly) DAT_COUNT[5](numcv - 1)
Definition spline.h:16
s16 numcv
Definition spline.h:10
Vec3 *cv DAT_COUNT(numcv+2 *(type !=0))
Types other than 0 have an extra control point at each end.
f32 totalLength
Definition spline.h:14