MeshLib Documentation
Loading...
Searching...
No Matches
MR::IntersectionPrecomputes2< T > Struct Template Reference

#include <MRIntersectionPrecomputes2.h>

Public Member Functions

 IntersectionPrecomputes2 ()=default
 
 IntersectionPrecomputes2 (const Vector2< T > &dir)
 

Public Attributes

Vector2< T > invDir
 
int maxDimIdxY = 1
 
int idxX = 0
 
Vector2i sign
 stores signs of direction vector;
 
Sx
 precomputed factors
 
Sy
 

Detailed Description

template<typename T>
struct MR::IntersectionPrecomputes2< T >

stores useful precomputed values for presented direction vector

allows to avoid repeatable computations during intersection finding

Constructor & Destructor Documentation

◆ IntersectionPrecomputes2() [1/2]

template<typename T >
MR::IntersectionPrecomputes2< T >::IntersectionPrecomputes2 ( )
default

◆ IntersectionPrecomputes2() [2/2]

template<typename T >
MR::IntersectionPrecomputes2< T >::IntersectionPrecomputes2 ( const Vector2< T > & dir)
inline

Member Data Documentation

◆ idxX

template<typename T >
int MR::IntersectionPrecomputes2< T >::idxX = 0

◆ invDir

template<typename T >
Vector2<T> MR::IntersectionPrecomputes2< T >::invDir

◆ maxDimIdxY

template<typename T >
int MR::IntersectionPrecomputes2< T >::maxDimIdxY = 1

◆ sign

template<typename T >
Vector2i MR::IntersectionPrecomputes2< T >::sign

stores signs of direction vector;

◆ Sx

template<typename T >
T MR::IntersectionPrecomputes2< T >::Sx

precomputed factors

◆ Sy

template<typename T >
T MR::IntersectionPrecomputes2< T >::Sy

The documentation for this struct was generated from the following files: