#include <MRMesh/MRIntersectionPrecomputes.h>
Public Member Functions | |
| IntersectionPrecomputes ()=default | |
| IntersectionPrecomputes (const Vector3< T > &dir) | |
Public Attributes | |
| MR_BIND_IGNORE Vector3< T > | invDir |
| {1 / dir} | |
| int | maxDimIdxZ = 2 |
| int | idxX = 0 |
| int | idxY = 1 |
| MR_BIND_IGNORE Vector3i | sign |
| stores signs of direction vector; | |
| T | Sx |
| precomputed factors | |
| T | Sy |
| T | Sz |
stores useful precomputed values for presented direction vector
allows to avoid repeatable computations during intersection finding
|
default |
|
inline |
| int MR::IntersectionPrecomputes< T >::idxX = 0 |
| int MR::IntersectionPrecomputes< T >::idxY = 1 |
| MR_BIND_IGNORE Vector3<T> MR::IntersectionPrecomputes< T >::invDir |
{1 / dir}
| int MR::IntersectionPrecomputes< T >::maxDimIdxZ = 2 |
[0]max, [1]next, [2]next-next f.e. {1,2,-3} => {2,1,0}
| MR_BIND_IGNORE Vector3i MR::IntersectionPrecomputes< T >::sign |
stores signs of direction vector;
| T MR::IntersectionPrecomputes< T >::Sx |
precomputed factors
| T MR::IntersectionPrecomputes< T >::Sy |
| T MR::IntersectionPrecomputes< T >::Sz |