Remove extra newlines

This commit is contained in:
2025-06-21 22:22:04 +03:00
parent 6e643403b4
commit 6ff6896969
21 changed files with 1 additions and 235 deletions

View File

@@ -12,7 +12,6 @@ void BH_Box2fUnion(const float aMin[2],
float outMax[2]);
int BH_Box2fIntersect(const float aMin[2],
const float aMax[2],
const float bMin[2],
@@ -21,13 +20,11 @@ int BH_Box2fIntersect(const float aMin[2],
float outMax[2]);
int BH_Box2fContains(const float aMin[2],
const float aMax[2],
const float point[2]);
int BH_Box2fEnclose(const float *points,
size_t size,
float outMin[2],

View File

@@ -12,7 +12,6 @@ void BH_Box3fUnion(const float aMin[3],
float outMax[3]);
int BH_Box3fIntersect(const float aMin[3],
const float aMax[3],
const float bMin[3],
@@ -21,13 +20,11 @@ int BH_Box3fIntersect(const float aMin[3],
float outMax[3]);
int BH_Box3fContains(const float aMin[3],
const float aMax[3],
const float point[3]);
int BH_Box3fEnclose(const float *points,
size_t size,
float outMin[3],

View File

@@ -9,12 +9,10 @@ int BH_LineFromPoints(const float a[2],
float out[3]);
float BH_LineDistance(const float line[3],
const float point[2]);
void BH_LineClosestPoint(const float line[3],
const float point[2],
float out[2]);

View File

@@ -7,72 +7,59 @@
void BH_Mat3fIdentity(float out[9]);
void BH_Mat3fAdd(const float a[9],
const float b[9],
float out[9]);
void BH_Mat3fSub(const float a[9],
const float b[9],
float out[9]);
void BH_Mat3fMul(const float a[9],
const float b[9],
float out[9]);
void BH_Mat3fScale(const float a[9],
float b,
float out[9]);
void BH_Mat3fTranspose(const float in[9],
float out[9]);
float BH_Mat3fTrace(const float in[9]);
float BH_Mat3fDet(const float in[9]);
int BH_Mat3fInverse(const float in[9],
float out[9]);
void BH_Mat3fFromScale(float x,
float y,
float out[9]);
void BH_Mat3fFromTranslation(float x,
float y,
float out[9]);
void BH_Mat3fFromRotation(float angle,
float out[9]);
void BH_Mat3fApplyVec3f(float a[9],
float b[3],
float out[3]);
void BH_Mat3fApplyVec2f(float a[9],
float b[2],
float out[2]);

View File

@@ -7,96 +7,79 @@
void BH_Mat4fIdentity(float out[16]);
void BH_Mat4fAdd(const float a[16],
const float b[16],
float out[16]);
void BH_Mat4fSub(const float a[16],
const float b[16],
float out[16]);
void BH_Mat4fMul(const float a[16],
const float b[16],
float out[16]);
void BH_Mat4fScale(const float a[16],
float b,
float out[16]);
void BH_Mat4fTranspose(const float in[16],
float out[16]);
float BH_Mat4fTrace(const float in[16]);
float BH_Mat4fDet(const float in[16]);
int BH_Mat4fInverse(const float in[16],
float out[16]);
void BH_Mat4fFromScale(float x,
float y,
float z,
float out[16]);
void BH_Mat4fFromTranslation(float x,
float y,
float z,
float out[16]);
void BH_Mat4fFromRotationX(float angle,
float out[16]);
void BH_Mat4fFromRotationY(float angle,
float out[16]);
void BH_Mat4fFromRotationZ(float angle,
float out[16]);
void BH_Mat4fFromAxis(const float axis[3],
float angle,
float out[16]);
void BH_Mat4fFromEuler(float roll,
float pitch,
float yaw,
float out[16]);
void BH_Mat4fFromQuat4f(const float in[4],
float out[16]);
void BH_Mat4fFromOrtho(float xMin,
float xMax,
float yMin,
@@ -106,7 +89,6 @@ void BH_Mat4fFromOrtho(float xMin,
float out[16]);
void BH_Mat4fFromFrustum(float fov,
float aspect,
float zMin,
@@ -114,20 +96,17 @@ void BH_Mat4fFromFrustum(float fov,
float out[16]);
void BH_Mat4fFromLookAt(const float position[3],
const float at[3],
const float up[3],
float out[16]);
void BH_Mat4fApplyVec4f(const float a[16],
const float b[4],
float out[4]);
void BH_Mat4fApplyVec3f(const float a[16],
const float b[3],
float out[3]);

View File

@@ -6,7 +6,6 @@
float BH_Lerpf(float a, float b, float t);
void BH_Triangle3fBarycentric(const float a[3],
const float b[3],
const float c[3],

View File

@@ -10,12 +10,10 @@ int BH_PlaneFromPoints(const float a[3],
float out[4]);
float BH_PlaneDistance(const float plane[4],
const float point[3]);
void BH_PlaneClosestPoint(const float plane[4],
const float point[3],
float out[3]);

View File

@@ -9,95 +9,78 @@
BH_Vec4fAdd(a, b, out)
#define BH_Quat4fSub(a, b, out) \
BH_Vec4fSub(a, b, out)
#define BH_Quat4fScale(a, b, out) \
BH_Vec4fScale(a, b, out)
#define BH_Quat4fNegate(in, out) \
BH_Vec4fNegate(in, out)
#define BH_Quat4fDot(a, b) \
BH_Vec4fDot(a, b)
#define BH_Quat4fLength(in) \
BH_Vec4fLength(in)
#define BH_Quat4fNormal(in, out) \
BH_Vec4fNormal(in, out)
#define BH_Quat4fLerp(a, b, t, out) \
BH_Vec4fLerp(a, b, t, out)
void BH_Quat4fIdentity(float out[4]);
void BH_Quat4fConjugate(const float in[4],
float out[4]);
void BH_Quat4fInverse(const float in[4],
float out[4]);
void BH_Quat4fMul(const float a[4],
const float b[4],
float out[4]);
void BH_Quat4fSlerp(const float a[4],
const float b[4],
float t,
float out[4]);
void BH_Quat4fFromEuler(float roll,
float pitch,
float yaw,
float out[4]);
void BH_Quat4fFromAxis(const float axis[3],
float angle,
float out[4]);
void BH_Quat4fToEuler(const float in[4],
float *roll,
float *pitch,
float *yaw);
void BH_Quat4fToAxis(const float in[4],
float axis[3],
float *angle);
void BH_Quat4fToMat4f(const float in[4],
float out[16]);

View File

@@ -11,7 +11,6 @@ int BH_Ray2fIntersectLine(const float start[2],
float out[2]);
int BH_Ray2fIntersectTime(const float aStart[2],
const float aDirection[2],
const float bStart[2],
@@ -20,7 +19,6 @@ int BH_Ray2fIntersectTime(const float aStart[2],
float *time2);
int BH_Ray2fIntersectRay(const float aStart[2],
const float aDirection[2],
const float bStart[2],
@@ -29,7 +27,6 @@ int BH_Ray2fIntersectRay(const float aStart[2],
float out[2]);
int BH_Ray2fIntersectSegment(const float aStart[2],
const float aDirection[2],
const float bStart[2],
@@ -38,7 +35,6 @@ int BH_Ray2fIntersectSegment(const float aStart[2],
float out[2]);
int BH_Segment2fIntersectLine(const float start[2],
const float end[2],
const float line[3],
@@ -46,7 +42,6 @@ int BH_Segment2fIntersectLine(const float start[2],
float out[2]);
int BH_Segment2fIntersectSegment(const float aStart[2],
const float aEnd[2],
const float bStart[2],
@@ -55,7 +50,6 @@ int BH_Segment2fIntersectSegment(const float aStart[2],
float out[2]);
int BH_Ray2fIntersectBox2f(const float aStart[2],
const float aDirection[2],
const float bMin[2],
@@ -64,7 +58,6 @@ int BH_Ray2fIntersectBox2f(const float aStart[2],
float out[2]);
int BH_Segment2fIntersectBox2f(const float aStart[2],
const float aEnd[2],
const float bMin[2],

View File

@@ -11,7 +11,6 @@ int BH_Ray3fIntersectPlane(const float start[3],
float out[3]);
int BH_Ray3fIntersectTriangle(const float start[3],
const float direction[3],
const float a[3],
@@ -21,7 +20,6 @@ int BH_Ray3fIntersectTriangle(const float start[3],
float out[3]);
int BH_Segment3fIntersectPlane(const float start[3],
const float end[3],
const float plane[4],
@@ -29,7 +27,6 @@ int BH_Segment3fIntersectPlane(const float start[3],
float out[3]);
int BH_Segment3fIntersectTriangle(const float start[3],
const float end[3],
const float a[3],
@@ -47,7 +44,6 @@ int BH_Ray3fIntersectBox3f(const float aStart[3],
float out[3]);
int BH_Segment3fIntersectBox3f(const float aStart[3],
const float aEnd[3],
const float bMin[3],

View File

@@ -8,86 +8,71 @@ void BH_Vec2fAdd(const float a[2],
float out[2]);
void BH_Vec2fSub(const float a[2],
const float b[2],
float out[2]);
void BH_Vec2fMul(const float a[2],
const float b[2],
float out[2]);
void BH_Vec2fScale(const float a[2],
float b,
float out[2]);
void BH_Vec2fMulAdd(const float a[2],
const float b[2],
const float c[2],
float out[2]);
void BH_Vec2fNegate(const float in[2],
float out[2]);
float BH_Vec2fDot(const float a[2],
const float b[2]);
float BH_Vec2fCross(const float a[2],
const float b[2]);
float BH_Vec2fLength(const float in[2]);
void BH_Vec2fNormal(const float in[2],
float out[2]);
float BH_Vec2fNormalEx(const float in[2],
float out[2]);
void BH_Vec2fMin(const float a[2],
const float b[2],
float out[2]);
void BH_Vec2fMax(const float a[2],
const float b[2],
float out[2]);
void BH_Vec2fLerp(const float a[2],
const float b[2],
float t,
float out[2]);
void BH_Vec2fProject(const float a[2],
const float b[2],
float out[2]);
void BH_Vec2fBarycentric(const float a[2],
const float b[2],
const float c[2],
@@ -96,5 +81,4 @@ void BH_Vec2fBarycentric(const float a[2],
float out[2]);
#endif /* BH_MATH_VEC2F */

View File

@@ -8,43 +8,36 @@ void BH_Vec2iAdd(const int a[2],
int out[2]);
void BH_Vec2iSub(const int a[2],
const int b[2],
int out[2]);
void BH_Vec2iMul(const int a[2],
const int b[2],
int out[2]);
void BH_Vec2iScale(const int a[2],
int b,
int out[2]);
void BH_Vec2iMulAdd(const int a[2],
const int b[2],
const int c[2],
int out[2]);
void BH_Vec2iNegate(const int in[2],
int out[2]);
void BH_Vec2iMin(const int a[2],
const int b[2],
int out[2]);
void BH_Vec2iMax(const int a[2],
const int b[2],
int out[2]);

View File

@@ -4,80 +4,66 @@
#include "../Common.h"
void BH_Vec3fAdd(const float a[3],
const float b[3],
float out[3]);
void BH_Vec3fSub(const float a[3],
const float b[3],
float out[3]);
void BH_Vec3fMul(const float a[3],
const float b[3],
float out[3]);
void BH_Vec3fScale(const float a[3],
float b,
float out[3]);
void BH_Vec3fMulAdd(const float a[3],
const float b[3],
const float c[3],
float out[3]);
void BH_Vec3fNegate(const float in[3],
float out[3]);
float BH_Vec3fDot(const float a[3],
const float b[3]);
void BH_Vec3fCross(const float a[3],
const float b[3],
float out[3]);
float BH_Vec3fLength(const float in[3]);
void BH_Vec3fNormal(const float in[3],
float out[3]);
float BH_Vec3fNormalEx(const float in[3],
float out[3]);
void BH_Vec3fMin(const float a[3],
const float b[3],
float out[3]);
void BH_Vec3fMax(const float a[3],
const float b[3],
float out[3]);
void BH_Vec3fLerp(const float a[3],
const float b[3],
float t,

View File

@@ -8,43 +8,36 @@ void BH_Vec3iAdd(const int a[3],
int out[3]);
void BH_Vec3iSub(const int a[3],
const int b[3],
int out[3]);
void BH_Vec3iMul(const int a[3],
const int b[3],
int out[3]);
void BH_Vec3iScale(const int a[3],
int b,
int out[3]);
void BH_Vec3iMulAdd(const int a[3],
const int b[3],
const int c[3],
int out[3]);
void BH_Vec3iNegate(const int in[3],
int out[3]);
void BH_Vec3iMin(const int a[3],
const int b[3],
int out[3]);
void BH_Vec3iMax(const int a[3],
const int b[3],
int out[3]);

View File

@@ -9,43 +9,36 @@ void BH_Vec4iAdd(const int a[4],
int out[4]);
void BH_Vec4iSub(const int a[4],
const int b[4],
int out[4]);
void BH_Vec4iMul(const int a[4],
const int b[4],
int out[4]);
void BH_Vec4iScale(const int a[4],
int b,
int out[4]);
void BH_Vec4iMulAdd(const int a[4],
const int b[4],
const int c[4],
int out[4]);
void BH_Vec4iNegate(const int in[4],
int out[4]);
void BH_Vec4iMin(const int a[4],
const int b[4],
int out[4]);
void BH_Vec4iMax(const int a[4],
const int b[4],
int out[4]);