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 <
dolphin/mtx.h
>
5
6
typedef
struct
HSD_Spline
{
7
/* +0 */
u8
type
;
8
/* +2 */
s16
numcv
;
9
/* +4 */
f32
tension
;
10
/* +8 */
Vec3
*
cv
;
11
/* +C */
f32
totalLength
;
12
/* +10 */
f32
*
segLength
;
13
/* +14 */
f32
(*
segPoly
)[5];
14
}
HSD_Spline
;
15
16
f32
splGetHelmite
(
f32
,
f32
,
f32
,
f32
,
f32
,
f32
);
17
void
splGetSplinePoint
(
Vec3
*,
HSD_Spline
*,
f32
);
18
f32
splArcLengthGetParameter
(
HSD_Spline
*,
f32
);
19
void
splArcLengthPoint
(
Vec3
*,
HSD_Spline
*,
f32
);
20
21
#endif
mtx.h
Vec3
struct Vec Vec3
s16
signed short int s16
Definition
types.h:6
f32
float f32
Definition
types.h:13
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:6
HSD_Spline::segLength
f32 * segLength
Definition
spline.h:12
HSD_Spline::type
u8 type
Definition
spline.h:7
HSD_Spline::segPoly
f32(* segPoly)[5]
Definition
spline.h:13
HSD_Spline::tension
f32 tension
Definition
spline.h:9
HSD_Spline::cv
Vec3 * cv
Definition
spline.h:10
HSD_Spline::numcv
s16 numcv
Definition
spline.h:8
HSD_Spline::totalLength
f32 totalLength
Definition
spline.h:11
src
sysdolphin
baselib
spline.h
Generated by
1.17.0