Refactor, separate docs from headers, add ru docs

Doxygen kind'a sucks and I need multilanguage documentation, so I did
that. Also, separated massive Math.h file into smaller files.
This commit is contained in:
2025-06-21 20:12:15 +03:00
parent 7ee69fc397
commit fc774fd0ff
116 changed files with 10693 additions and 3521 deletions

80
include/BH/Math/Vec4f.h Normal file
View File

@@ -0,0 +1,80 @@
#ifndef BH_MATH_VEC4F_H
#define BH_MATH_VEC4F_H
#include "../Common.h"
void BH_Vec4fAdd(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fSub(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fMul(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fScale(const float a[4],
float b,
float out[4]);
void BH_Vec4fMulAdd(const float a[4],
const float b[4],
const float c[4],
float out[4]);
void BH_Vec4fNegate(const float in[4],
float out[4]);
float BH_Vec4fDot(const float a[4],
const float b[4]);
float BH_Vec4fLength(const float in[4]);
void BH_Vec4fNormal(const float in[4],
float out[4]);
float BH_Vec4fNormalEx(const float in[4],
float out[4]);
void BH_Vec4fMin(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fMax(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fLerp(const float a[4],
const float b[4],
float t,
float out[4]);
void BH_Vec4fProject(const float a[4],
const float b[4],
float out[4]);
void BH_Vec4fBarycentric(const float a[4],
const float b[4],
const float c[4],
float v,
float w,
float out[4]);
#endif /* BH_MATH_VEC4F */