gKit2 light
Loading...
Searching...
No Matches
BBoxHit Struct Reference

intersection avec une boite / un englobant. More...

Public Member Functions

 BBoxHit (const float _tmin, const float _tmax)
float centroid () const
 operator bool () const
 BBoxHit (const float _tmin, const float _tmax)
 operator bool () const
 BBoxHit (const float _tmin, const float _tmax)
 operator bool () const
 BBoxHit (const float _tmin, const float _tmax)
 operator bool () const

Public Attributes

float tmin
float tmax

Detailed Description

intersection avec une boite / un englobant.

Definition at line 35 of file tuto_bvh.cpp.

Constructor & Destructor Documentation

◆ BBoxHit() [1/8]

BBoxHit::BBoxHit ( )
inline

Definition at line 39 of file tuto_bvh.cpp.

39: tmin(FLT_MAX), tmax(-FLT_MAX) {}

◆ BBoxHit() [2/8]

BBoxHit::BBoxHit ( const float _tmin,
const float _tmax )
inline

Definition at line 40 of file tuto_bvh.cpp.

40: tmin(_tmin), tmax(_tmax) {}

◆ BBoxHit() [3/8]

BBoxHit::BBoxHit ( )
inline

Definition at line 51 of file tuto_bvh2.cpp.

51: tmin(FLT_MAX), tmax(-FLT_MAX) {}

◆ BBoxHit() [4/8]

BBoxHit::BBoxHit ( const float _tmin,
const float _tmax )
inline

Definition at line 52 of file tuto_bvh2.cpp.

52: tmin(_tmin), tmax(_tmax) {}

◆ BBoxHit() [5/8]

BBoxHit::BBoxHit ( )
inline

Definition at line 56 of file tuto_bvh2_gltf.cpp.

56: tmin(FLT_MAX), tmax(-FLT_MAX) {}

◆ BBoxHit() [6/8]

BBoxHit::BBoxHit ( const float _tmin,
const float _tmax )
inline

Definition at line 57 of file tuto_bvh2_gltf.cpp.

57: tmin(_tmin), tmax(_tmax) {}

◆ BBoxHit() [7/8]

BBoxHit::BBoxHit ( )
inline

Definition at line 56 of file tuto_bvh2_gltf_brdf.cpp.

56: tmin(FLT_MAX), tmax(-FLT_MAX) {}

◆ BBoxHit() [8/8]

BBoxHit::BBoxHit ( const float _tmin,
const float _tmax )
inline

Definition at line 57 of file tuto_bvh2_gltf_brdf.cpp.

57: tmin(_tmin), tmax(_tmax) {}

Member Function Documentation

◆ centroid()

float BBoxHit::centroid ( ) const
inline

Definition at line 41 of file tuto_bvh.cpp.

41{ return (tmin + tmax) / 2; }

◆ operator bool() [1/4]

BBoxHit::operator bool ( ) const
inline

Definition at line 42 of file tuto_bvh.cpp.

42{ return tmin <= tmax; }

◆ operator bool() [2/4]

BBoxHit::operator bool ( ) const
inline

Definition at line 54 of file tuto_bvh2.cpp.

54{ return tmin <= tmax; }

◆ operator bool() [3/4]

BBoxHit::operator bool ( ) const
inline

Definition at line 59 of file tuto_bvh2_gltf.cpp.

59{ return tmin <= tmax; } // renvoie vrai si l'intersection est definie / existe

◆ operator bool() [4/4]

BBoxHit::operator bool ( ) const
inline

Definition at line 59 of file tuto_bvh2_gltf_brdf.cpp.

59{ return tmin <= tmax; } // renvoie vrai si l'intersection est definie / existe

Member Data Documentation

◆ tmin

float BBoxHit::tmin

Definition at line 37 of file tuto_bvh.cpp.

◆ tmax

float BBoxHit::tmax

Definition at line 37 of file tuto_bvh.cpp.


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