VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvGraphicsUtils
DtAxisAlignedBoundingBox.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
#pragma once
10
11
#include <
vrvGraphicsUtils/DtMatrix4.h
>
12
13
namespace
makVrv {
14
15
enum
Extent
16
{
17
EXTENT_NULL
= 0
18
,
EXTENT_FINITE
19
,
EXTENT_INFINITE
20
};
21
24
template
<
class
T>
25
class
DtAxisAlignedBoundingBox
26
{
27
public
:
28
DtAxisAlignedBoundingBox
();
29
DtAxisAlignedBoundingBox
(
const
DtVector3<T>
& vMin
30
,
const
DtVector3<T>
& vMax);
31
~DtAxisAlignedBoundingBox
();
32
33
const
DtVector3<T>
&
min
(
void
)
const
;
34
const
DtVector3<T>
&
max
(
void
)
const
;
35
DtVector3<T>
center
(
void
)
const
;
36
T
boundingSphereRadius
(
void
)
const
;
37
38
DtVector3<T>
halfSize
(
void
)
const
;
39
DtVector3<T>
size
(
void
)
const
;
40
Extent
extent
(
void
)
const
;
41
42
void
setMinMax
(
const
DtVector3<T>
& vMin,
const
DtVector3<T>
& vMax);
43
void
setNull
(
void
);
44
void
setInfinite
(
void
);
45
46
void
merge
(
const
DtAxisAlignedBoundingBox<T>
& rhs);
47
void
transformAffine
(
const
DtMatrix4<T>
& m);
48
49
bool
isInfinite
(
void
)
const
;
50
bool
isFinite
(
void
)
const
;
51
bool
isNull
(
void
)
const
;
52
53
void
GetCorners
(
DtVector3<T>
corners[8])
const
;
54
private
:
55
DtVector3<T>
myVectorMin
;
56
DtVector3<T>
myVectorMax
;
57
Extent
myExtent
;
58
};
59
60
typedef
DtAxisAlignedBoundingBox<float32>
AxisAlignedBoundingBox_32
;
61
typedef
DtAxisAlignedBoundingBox<float64>
AxisAlignedBoundingBox_64
;
62
63
}
//namespace makVrv
64
65
#include "DtAxisAlignedBoundingBox.inl"
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)