MCPcopy Create free account
hub / github.com/PDAL/PDAL / corner

Method corner

io/private/esri/Obb.cpp:144–153  ·  view source on GitHub ↗

This could be optimized by storing things, and there is also symmetry that could eliminate rotations, but that seems unnecessary for now.

Source from the content-addressed store, hash-verified

142// This could be optimized by storing things, and there is also symmetry
143// that could eliminate rotations, but that seems unnecessary for now.
144Eigen::Vector3d Obb::corner(size_t pos)
145{
146 assert(pos < 8);
147 Eigen::Vector3d v((pos & 1) ? -m_hx : m_hx,
148 (pos & 2) ? -m_hy : m_hy,
149 (pos & 4) ? -m_hz : m_hz);
150 v = math::rotate(v, m_quat);
151 v += m_p;
152 return v;
153}
154
155Segment Obb::segment(size_t pos)
156{

Callers 1

halfIntersectMethod · 0.80

Calls 1

rotateFunction · 0.50

Tested by

no test coverage detected