mirror of
https://github.com/zeldaret/ss
synced 2026-05-28 08:25:06 -04:00
41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
#ifndef RVL_SDK_MTX_VEC_H
|
|
#define RVL_SDK_MTX_VEC_H
|
|
#include "common.h"
|
|
#include "rvl/MTX/mtx.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void PSVECAdd(const Vec *, const Vec *, Vec *);
|
|
void PSVECSubtract(const Vec *, const Vec *, Vec *);
|
|
void PSVECScale(const Vec *, Vec *, f32);
|
|
void PSVECNormalize(const Vec *, Vec *);
|
|
f32 PSVECMag(const Vec *);
|
|
f32 PSVECDotProduct(const Vec *, const Vec *);
|
|
void PSVECCrossProduct(const Vec *, const Vec *, Vec *);
|
|
f32 PSVECSquareDistance(const Vec *, const Vec *);
|
|
f32 PSVECDistance(const Vec *, const Vec *);
|
|
|
|
#define VECAdd PSVECAdd
|
|
#define VECSubtract PSVECSubtract
|
|
#define VECScale PSVECScale
|
|
#define VECNormalize PSVECNormalize
|
|
#define VECSquareMag PSVECSquareMag
|
|
#define VECMag PSVECMag
|
|
#define VECDotProduct PSVECDotProduct
|
|
#define VECCrossProduct PSVECCrossProduct
|
|
#define VECSquareDistance PSVECSquareDistance
|
|
#define VECDistance PSVECDistance
|
|
|
|
void C_VECHalfAngle(const Vec *, const Vec *, Vec *);
|
|
void C_VECReflect(const Vec *, const Vec *, Vec *);
|
|
|
|
#define VECHalfAngle C_VECHalfAngle
|
|
#define VECReflect C_VECReflect
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|