Tatooine
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tatooine::color_scales::jet< Real > Struct Template Reference

#include <jet.h>

Collaboration diagram for tatooine::color_scales::jet< Real >:
[legend]

Public Types

using real_type = Real
 
using this_type = jet< Real >
 
using color_type = vec< Real, 3 >
 

Public Member Functions

 jet ()
 
auto data () -> auto &
 
auto data () const -> auto const &
 
auto sample (real_type t) const
 
auto operator() (real_type const t) const
 

Static Public Member Functions

static constexpr auto num_samples () -> std::size_t
 

Public Attributes

std::unique_ptr< color_type[]> m_data
 

Member Typedef Documentation

◆ color_type

template<floating_point Real>
using tatooine::color_scales::jet< Real >::color_type = vec<Real, 3>

◆ real_type

template<floating_point Real>
using tatooine::color_scales::jet< Real >::real_type = Real

◆ this_type

template<floating_point Real>
using tatooine::color_scales::jet< Real >::this_type = jet<Real>

Constructor & Destructor Documentation

◆ jet()

template<floating_point Real>
tatooine::color_scales::jet< Real >::jet ( )
inline

Member Function Documentation

◆ data() [1/2]

template<floating_point Real>
auto tatooine::color_scales::jet< Real >::data ( ) -> auto&
inline

◆ data() [2/2]

template<floating_point Real>
auto tatooine::color_scales::jet< Real >::data ( ) const -> auto const&
inline

◆ num_samples()

template<floating_point Real>
static constexpr auto tatooine::color_scales::jet< Real >::num_samples ( ) -> std::size_t
inlinestaticconstexpr

◆ operator()()

template<floating_point Real>
auto tatooine::color_scales::jet< Real >::operator() ( real_type const  t) const
inline

◆ sample()

template<floating_point Real>
auto tatooine::color_scales::jet< Real >::sample ( real_type  t) const
inline

Member Data Documentation

◆ m_data

template<floating_point Real>
std::unique_ptr<color_type[]> tatooine::color_scales::jet< Real >::m_data

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