-
Notifications
You must be signed in to change notification settings - Fork 16
/
BoundingBox.cpp
48 lines (32 loc) · 1005 Bytes
/
BoundingBox.cpp
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
////////////////////////////////////////////////////////////////////////////////////
// Copyright © Charalambos "Charis" Poullis, [email protected] //
// This work can only be used under an exclusive license of the author. //
////////////////////////////////////////////////////////////////////////////////////
#ifndef __BOUNDING_BOX_CPP__
#define __BOUNDING_BOX_CPP__
#include "BoundingBox.h"
BoundingBox::BoundingBox() {
min_pt = Vector3f(FLT_MAX, FLT_MAX, FLT_MAX);
max_pt = Vector3f(-FLT_MAX, -FLT_MAX, -FLT_MAX);
}
BoundingBox::BoundingBox(Vector3f const &_min_pt, Vector3f const &_max_pt) {
min_pt = _min_pt;
max_pt = _max_pt;
}
BoundingBox::~BoundingBox() {
}
Vector3f BoundingBox::getMinPt() const {
return min_pt;
}
Vector3f BoundingBox::getMaxPt() const {
return max_pt;
}
void BoundingBox::setMinPt(Vector3f const _min_pt) {
min_pt = _min_pt;
return;
}
void BoundingBox::setMaxPt(Vector3f const _max_pt) {
max_pt = _max_pt;
return;
}
#endif