-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathBoundingBox.h
49 lines (36 loc) · 1.03 KB
/
BoundingBox.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
////////////////////////////////////////////////////////////////////////////////////
// Copyright © Charalambos "Charis" Poullis, [email protected] //
// This work can only be used under an exclusive license of the author. //
////////////////////////////////////////////////////////////////////////////////////
#ifndef __BOUNDING_BOX_H__
#define __BOUNDING_BOX_H__
/** Bounding Box
* This class defines a bounding box and related functions
*
*/
#include <float.h>
#include "Eigen/Eigen"
using namespace Eigen;
class BoundingBox {
public:
///Constructor
BoundingBox();
///Constructor
BoundingBox(Vector3f const &_min_pt, Vector3f const &_max_pt);
///Destructor
~BoundingBox();
///Get min point
Vector3f getMinPt() const;
///Get max point
Vector3f getMaxPt() const;
///Set min point
void setMinPt(Vector3f const _min_pt);
///Set max point
void setMaxPt(Vector3f const _max_pt);
protected:
///The minimum point
Vector3f min_pt;
///The maximum point
Vector3f max_pt;
};
#endif