mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-01-24 05:55:01 +03:00
0c7c184d8a
* fixed * and cleanup * format * let's all go to the library * split * small cleanup
22 lines
483 B
C
22 lines
483 B
C
#ifndef SF64_MATH_H
|
|
#define SF64_MATH_H
|
|
|
|
#include "PR/ultratypes.h"
|
|
|
|
double fabsf(double f);
|
|
#pragma intrinsic(fabsf)
|
|
|
|
#define M_PI 3.14159265358979323846f
|
|
#define M_SQRT2 1.41421356237309504880f
|
|
#define M_SQRT1_2 0.70710678118654752440f /* 1/sqrt(2) */
|
|
#define FLT_MAX 340282346638528859811704183484516925440.0f
|
|
#define SHT_MAX 32767.0f
|
|
#define SHT_MINV (1.0f / SHT_MAX)
|
|
|
|
typedef struct {
|
|
/* 0x0 */ f32 x;
|
|
/* 0x4 */ f32 y;
|
|
/* 0x8 */ f32 z;
|
|
} Vec3f; // size = 0xC
|
|
|
|
#endif |