19#ifndef _vctBoundingBox3_h
20#define _vctBoundingBox3_h
27template <
typename _elementType>
165 bool expanded =
false;
186 return Expand(point.
X(), point.
Y(), point.
Z());
217 if (point[0] + dist <
mMinCorner[0])
return 0;
218 if (point[1] + dist <
mMinCorner[1])
return 0;
219 if (point[2] + dist <
mMinCorner[2])
return 0;
220 if (point[0] - dist >
mMaxCorner[0])
return 0;
221 if (point[1] - dist >
mMaxCorner[1])
return 0;
222 if (point[2] - dist >
mMaxCorner[2])
return 0;
Definition vctBoundingBox3.h:29
void Reset(const PointType &pointA, const PointType &pointB)
Definition vctBoundingBox3.h:96
const PointType & MaxCorner(void) const
Definition vctBoundingBox3.h:107
bool Expand(const value_type x, const value_type y, const value_type z)
Definition vctBoundingBox3.h:164
void Reset(const PointType &point)
Definition vctBoundingBox3.h:90
void EnlargeBy(const double dist)
Definition vctBoundingBox3.h:206
double DiagonalLength(void) const
Definition vctBoundingBox3.h:127
PointType Diagonal(void) const
Definition vctBoundingBox3.h:122
bool Intersect(const ThisType &other) const
Definition vctBoundingBox3.h:191
vctFixedSizeVector< value_type, 3 > PointType
Definition vctBoundingBox3.h:33
ThisType & Include(const ThisType &other)
Definition vctBoundingBox3.h:149
PointType MidPoint(void) const
Definition vctBoundingBox3.h:132
ThisType & operator=(const ThisType &other)
Definition vctBoundingBox3.h:65
size_t mCounter
Definition vctBoundingBox3.h:38
int Includes(const ThisType &other, const double dist=0.0) const
Definition vctBoundingBox3.h:228
vctBoundingBox3Base(void)
Definition vctBoundingBox3.h:44
bool Expand(const PointType &point)
Definition vctBoundingBox3.h:185
size_t Counter(void) const
Definition vctBoundingBox3.h:116
vctBoundingBox3Base(const ThisType &other)
Definition vctBoundingBox3.h:59
vctBoundingBox3Base< value_type > ThisType
Definition vctBoundingBox3.h:32
const PointType & MinCorner(void) const
Definition vctBoundingBox3.h:102
int Includes(const PointType &point, const double dist=0.0) const
Definition vctBoundingBox3.h:215
vctBoundingBox3Base(const PointType &pointA, const PointType &pointB)
Definition vctBoundingBox3.h:52
_elementType value_type
Definition vctBoundingBox3.h:31
ThisType & operator=(const PointType &point)
Definition vctBoundingBox3.h:75
ThisType & Include(const PointType &point)
Definition vctBoundingBox3.h:137
PointType mMinCorner
Definition vctBoundingBox3.h:36
void Reset(void)
Definition vctBoundingBox3.h:81
PointType mMaxCorner
Definition vctBoundingBox3.h:37
NormType Norm(void) const
Definition vctFixedSizeConstVectorBase.h:453
value_type & Y(void)
Definition vctFixedSizeVectorBase.h:572
value_type & Z(void)
Definition vctFixedSizeVectorBase.h:585
value_type & X(void)
Definition vctFixedSizeVectorBase.h:559
value_type SetAll(const value_type &value)
Definition vctFixedSizeVectorBase.h:241
Implementation of a fixed-size vector using template metaprogramming.
Definition vctFixedSizeVector.h:54
vctBoundingBox3Base< double > vctBoundingBox3
Definition vctBoundingBox3.h:236
vctBoundingBox3Base< float > vctBoundingBoxFloat3
Definition vctBoundingBox3.h:238
vctBoundingBox3Base< double > vctBoundingBoxDouble3
Definition vctBoundingBox3.h:237
Macros to export the symbols of cisstVector (in a Dll).
Typedef for fixed size vectors.