projects
/
vg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bad char
[vg.git]
/
vg_m.h
diff --git
a/vg_m.h
b/vg_m.h
index 3d4f53ffd53eca654a003663be5a014ea43238d3..4af60c8c84adc1022d424071ef4438130ab8ee88 100644
(file)
--- a/
vg_m.h
+++ b/
vg_m.h
@@
-1,4
+1,4
@@
-/* Copyright (C) 2021-202
3
Harry Godden (hgn) - All Rights Reserved
+/* Copyright (C) 2021-202
4
Harry Godden (hgn) - All Rights Reserved
*
* 0. Misc
* 1. Scalar operations
*
* 0. Misc
* 1. Scalar operations
@@
-24,8
+24,7
@@
* 6.a Random numbers
*/
* 6.a Random numbers
*/
-#ifndef VG_M_H
-#define VG_M_H
+#pragma once
#include "vg_platform.h"
#include <math.h>
#include "vg_platform.h"
#include <math.h>
@@
-1644,7
+1643,7
@@
static int plane_intersect3( v4f a, v4f b, v4f c, v3f p )
return 1;
}
return 1;
}
-int plane_intersect2( v4f a, v4f b, v3f p, v3f n )
+
static
int plane_intersect2( v4f a, v4f b, v3f p, v3f n )
{
f32 const epsilon = 1e-6f;
{
f32 const epsilon = 1e-6f;
@@
-2050,7
+2049,7
@@
static void closest_point_elipse( v2f p, v2f e, v2f o )
* -----------------------------------------------------------------------------
*/
* -----------------------------------------------------------------------------
*/
-int ray_aabb1( boxf box, v3f co, v3f dir_inv, f32 dist )
+
static
int ray_aabb1( boxf box, v3f co, v3f dir_inv, f32 dist )
{
v3f v0, v1;
f32 tmin, tmax;
{
v3f v0, v1;
f32 tmin, tmax;
@@
-2610,5
+2609,3
@@
static void vg_rgb_hsv( v3f rgb, v3f hsv ){
hsv[0] = vg_fractf( hsv[0] * (60.0f/360.0f) );
}
hsv[0] = vg_fractf( hsv[0] * (60.0f/360.0f) );
}
-
-#endif /* VG_M_H */