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 "forward.h"
5
6#include <dolphin/mtx.h>
7
8struct HSD_Spline {
9 /* +0 */ u8 type;
10 /* +2 */ s16 numcv;
11 /* +4 */ f32 tension;
12 /* +8 */ Vec3* cv;
13 /* +C */ f32 totalLength;
14 /* +10 */ f32* segLength;
15 /* +14 */ f32 (*segPoly)[5];
16};
17
18f32 splGetHelmite(f32, f32, f32, f32, f32, f32);
19void splGetCardinalPoint(Vec3*, Vec3*, f32, f32);
20void splGetBSplinePoint(Vec3*, Vec3*, f32);
21void splGetBezierPoint(Vec3*, Vec3*, f32);
22void splGetSplinePoint(Vec3*, HSD_Spline*, f32);
24void splArcLengthPoint(Vec3*, HSD_Spline*, f32);
25
26#endif
void splGetSplinePoint(Vec3 *, HSD_Spline *, f32)
Definition spline.c:83
void splGetCardinalPoint(Vec3 *, Vec3 *, f32, f32)
Definition spline.c:31
f32 splArcLengthGetParameter(HSD_Spline *, f32)
Definition spline.c:173
void splGetBSplinePoint(Vec3 *, Vec3 *, f32)
Definition spline.c:49
void splArcLengthPoint(Vec3 *, HSD_Spline *, f32)
Definition spline.c:229
f32 splGetHelmite(f32, f32, f32, f32, f32, f32)
Definition spline.c:10
void splGetBezierPoint(Vec3 *, Vec3 *, f32)
Definition spline.c:65
Definition spline.h:8
f32 * segLength
Definition spline.h:14
u8 type
Definition spline.h:9
f32(* segPoly)[5]
Definition spline.h:15
f32 tension
Definition spline.h:11
Vec3 * cv
Definition spline.h:12
s16 numcv
Definition spline.h:10
f32 totalLength
Definition spline.h:13