Blender V4.3
OrientationBounds Struct Reference

#include <light_tree.h>

Public Types

enum  empty_t { empty = 0 }
 

Public Member Functions

__forceinline OrientationBounds ()
 
__forceinline OrientationBounds (const float3 &axis_, float theta_o_, float theta_e_)
 
__forceinline OrientationBounds (empty_t)
 
__forceinline bool is_empty () const
 
float calculate_measure () const
 

Public Attributes

float3 axis
 
float theta_o
 
float theta_e
 

Detailed Description

Definition at line 24 of file light_tree.h.

Member Enumeration Documentation

◆ empty_t

Enumerator
empty 

Definition at line 36 of file light_tree.h.

Constructor & Destructor Documentation

◆ OrientationBounds() [1/3]

__forceinline OrientationBounds::OrientationBounds ( )
inline

Definition at line 29 of file light_tree.h.

◆ OrientationBounds() [2/3]

__forceinline OrientationBounds::OrientationBounds ( const float3 & axis_,
float theta_o_,
float theta_e_ )
inline

Definition at line 31 of file light_tree.h.

◆ OrientationBounds() [3/3]

__forceinline OrientationBounds::OrientationBounds ( empty_t )
inline

Definition at line 41 of file light_tree.h.

Member Function Documentation

◆ calculate_measure()

CCL_NAMESPACE_BEGIN float OrientationBounds::calculate_measure ( ) const

Definition at line 13 of file light_tree.cpp.

References cosf, fminf, is_empty(), M_2PI_F, M_PI_2_F, M_PI_F, sinf, theta_e, and theta_o.

Referenced by LightTreeMeasure::calculate().

◆ is_empty()

__forceinline bool OrientationBounds::is_empty ( ) const
inline

Definition at line 46 of file light_tree.h.

References is_zero().

Referenced by calculate_measure(), and merge().

Member Data Documentation

◆ axis

float3 OrientationBounds::axis

Definition at line 25 of file light_tree.h.

Referenced by LightTreeEmitter::LightTreeEmitter(), and LightTreeMeasure::transform().

◆ theta_e

float OrientationBounds::theta_e

◆ theta_o

float OrientationBounds::theta_o

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