VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
12 
13 namespace makVrv {
14 
15 enum Extent
16 {
20  };
21 
24 template <class T>
26 {
27 public:
30  , const DtVector3<T>& vMax);
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:
58 };
59 
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)