-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCBBoxInt32.h
36 lines (30 loc) · 1.02 KB
/
CBBoxInt32.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
//=============================================================================
//CBBoxInt32
// 3D bounding box with int32 coordinates
//
//=============================================================================
// (C) 2005 ATI Research, Inc., All rights reserved.
//=============================================================================
#ifndef CBBOXINT32_H
#define CBBOXINT32_H
#include <math.h>
#include <stdio.h>
#include "Types.h"
#include "VectorMacros.h"
//bounding box class with coords specified as int32
class CBBoxInt32
{
public:
int32 m_minCoord[3]; //upper left back corner
int32 m_maxCoord[3]; //lower right front corner
CBBoxInt32();
bool8 Empty(void);
void Clear(void);
void Augment(int32 a_X, int32 a_Y, int32 a_Z);
void AugmentX(int32 a_X);
void AugmentY(int32 a_Y);
void AugmentZ(int32 a_Z);
void ClampMin(int32 a_X, int32 a_Y, int32 a_Z);
void ClampMax(int32 a_X, int32 a_Y, int32 a_Z);
};
#endif //CBBOXINT32_H