BoundingRectangle.hpp
Go to the documentation of this file.
1 
34 #ifndef LVR2_GEOMETRY_BOUNDINGRECTANGLE_H_
35 #define LVR2_GEOMETRY_BOUNDINGRECTANGLE_H_
36 
37 #include "lvr2/geometry/Normal.hpp"
38 
39 namespace lvr2
40 {
41 
42 
76 template<typename CoordType>
78 {
88  CoordType m_minDistA;
90  CoordType m_maxDistA;
93  CoordType m_minDistB;
95  CoordType m_maxDistB;
96 
101  BaseVector<CoordType> supportVector,
104  Normal<CoordType> normal,
105  CoordType minDistA,
106  CoordType maxDistA,
107  CoordType minDistB,
108  CoordType maxDistB
109  ) :
110  m_supportVector(supportVector),
111  m_vec1(vec1),
112  m_vec2(vec2),
113  m_normal(normal),
114  m_minDistA(minDistA),
115  m_maxDistA(maxDistA),
116  m_minDistB(minDistB),
117  m_maxDistB(maxDistB)
118  {
119  }
120 
121 };
122 
123 } // namespace lvr2
124 
125 
126 
127 #endif /* LVR2_GEOMETRY_BOUNDINGRECTANGLE_H_ */
CoordType m_minDistA
Distance of the beginning border from the support vector in the first direction (if negative: reverse...
Normal< CoordType > m_normal
The normal of the rectangle.
A vector guaranteed to be normalized (length = 1).
Definition: BaseVector.hpp:49
BaseVector< CoordType > m_vec1
The first direction vector.
A representation of a bounding rectangle.
BaseVector< CoordType > m_vec2
The second direction vector (that should be orthogonal to the first direction)
BoundingRectangle(BaseVector< CoordType > supportVector, BaseVector< CoordType > vec1, BaseVector< CoordType > vec2, Normal< CoordType > normal, CoordType minDistA, CoordType maxDistA, CoordType minDistB, CoordType maxDistB)
Constructor.
CoordType m_maxDistB
Distance of the end border from the support vector in the second direction (if negative: reverse dire...
CoordType m_maxDistA
Distance of the end border from the support vector in the first direction (if negative: reverse direc...
BaseVector< CoordType > m_supportVector
A 3D point, that is the support vector of the rectangle.


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:06