aboutsummaryrefslogtreecommitdiff
path: root/include/BH/Math/Box3f.h
blob: ce5f1247851f2b34f6b413e1a63fb8376d567e8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef BH_MATH_BOX3F_H
#define BH_MATH_BOX3F_H

#include "../Common.h"


void BH_Box3fUnion(const float aMin[3],
                   const float aMax[3],
                   const float bMin[3],
                   const float bMax[3],
                   float outMin[3],
                   float outMax[3]);


int BH_Box3fIntersect(const float aMin[3],
                      const float aMax[3],
                      const float bMin[3],
                      const float bMax[3],
                      float outMin[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],
                    float outMax[3]);


#endif /* BH_MATH_BOX3F_H */