aboutsummaryrefslogtreecommitdiff
path: root/include/BH/Math/Box2f.h
blob: 3af493eb27be5d23f49be58fa001093f0ff98219 (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_BOX2F_H
#define BH_MATH_BOX2F_H

#include "../Common.h"


void BH_Box2fUnion(const float aMin[2],
                   const float aMax[2],
                   const float bMin[2],
                   const float bMax[2],
                   float outMin[2],
                   float outMax[2]);


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


#endif /* BH_MATH_BOX2F_H */