Blender V5.0
OrientationBounds Struct Reference

#include <light_tree.h>

Public Types

enum  empty_t { empty = 0 }

Public Member Functions

__forceinline OrientationBounds ()=default
__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 ( )
default

References __forceinline.

◆ 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.

References __forceinline, axis, theta_e, and theta_o.

◆ OrientationBounds() [3/3]

__forceinline OrientationBounds::OrientationBounds ( empty_t )
inline

Definition at line 41 of file light_tree.h.

References __forceinline, axis, make_float3(), theta_e, and theta_o.

Member Function Documentation

◆ calculate_measure()

CCL_NAMESPACE_BEGIN float OrientationBounds::calculate_measure ( ) const

Definition at line 14 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.

◆ is_empty()

__forceinline bool OrientationBounds::is_empty ( ) const
inline

Definition at line 46 of file light_tree.h.

References __forceinline, axis, and is_zero().

Referenced by calculate_measure(), and merge().

Member Data Documentation

◆ axis

float3 OrientationBounds::axis

◆ theta_e

◆ theta_o


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