SSBM Decomp
Toggle main menu visibility
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
8
typedef
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);
17
}
HSD_Spline
;
18
19
f32
splGetHelmite
(
f32
,
f32
,
f32
,
f32
,
f32
,
f32
);
20
void
splGetSplinePoint
(
Vec3
*,
HSD_Spline
*,
f32
);
21
f32
splArcLengthGetParameter
(
HSD_Spline
*,
f32
);
22
void
splArcLengthPoint
(
Vec3
*,
HSD_Spline
*,
f32
);
23
24
#endif
dat_macros.h
Annotations describing how archive data is laid out, for the parts a C declaration cannot express: ho...
mtx.h
Vec3
struct Vec Vec3
s16
signed short int s16
Definition
types.h:6
f32
float f32
Definition
types.h:18
u8
unsigned char u8
Definition
types.h:5
splGetSplinePoint
void splGetSplinePoint(Vec3 *, HSD_Spline *, f32)
Definition
spline.c:82
splArcLengthGetParameter
f32 splArcLengthGetParameter(HSD_Spline *, f32)
Definition
spline.c:178
splArcLengthPoint
void splArcLengthPoint(Vec3 *, HSD_Spline *, f32)
Definition
spline.c:235
splGetHelmite
f32 splGetHelmite(f32, f32, f32, f32, f32, f32)
Definition
spline.c:9
HSD_Spline
Definition
spline.h:8
HSD_Spline::type
u8 type
Definition
spline.h:9
HSD_Spline::DAT_COUNT
f32 *segLength DAT_COUNT(numcv)
HSD_Spline::tension
f32 tension
Definition
spline.h:11
HSD_Spline::DAT_COUNT
f32(*segPoly) DAT_COUNT[5](numcv - 1)
Definition
spline.h:16
HSD_Spline::numcv
s16 numcv
Definition
spline.h:10
HSD_Spline::DAT_COUNT
Vec3 *cv DAT_COUNT(numcv+2 *(type !=0))
Types other than 0 have an extra control point at each end.
HSD_Spline::totalLength
f32 totalLength
Definition
spline.h:14
src
sysdolphin
baselib
spline.h
Generated by
1.17.0