nngn
Loading...
Searching...
No Matches
nngn::Sun Class Reference

#include <sun.h>

Public Types

using duration = std::chrono::milliseconds
 
using duration = std::chrono::milliseconds
 

Public Member Functions

 Sun ()
 
float incidence () const
 
duration time () const
 
auto time_ms () const
 
bool updated (void) const
 
void set_incidence (float a)
 
void set_time (duration t)
 
void set_time_ms (unsigned t)
 
void set_updated (bool b)
 
vec3 dir () const
 
 Sun ()
 
float incidence () const
 
duration time () const
 
auto time_ms () const
 
bool updated (void) const
 
void set_incidence (float a)
 
void set_time (duration t)
 
void set_time_ms (unsigned t)
 
void set_updated (bool b)
 
vec3 dir () const
 

Private Attributes

float m_incidence = 0
 
float m_sin = 0
 
float m_cos = 0
 
float m_arc_len = 0
 
duration m_time = {}
 
bool m_updated = false
 

Member Typedef Documentation

◆ duration [1/2]

using nngn::Sun::duration = std::chrono::milliseconds

◆ duration [2/2]

using nngn::Sun::duration = std::chrono::milliseconds

Constructor & Destructor Documentation

◆ Sun() [1/2]

nngn::Sun::Sun ( )
Here is the call graph for this function:

◆ Sun() [2/2]

nngn::Sun::Sun ( )

Member Function Documentation

◆ dir() [1/2]

vec3 nngn::Sun::dir ( ) const
Here is the caller graph for this function:

◆ dir() [2/2]

vec3 nngn::Sun::dir ( ) const

◆ incidence() [1/2]

float nngn::Sun::incidence ( ) const
inline

◆ incidence() [2/2]

float nngn::Sun::incidence ( ) const
inline

◆ set_incidence() [1/2]

void nngn::Sun::set_incidence ( float  a)
Here is the caller graph for this function:

◆ set_incidence() [2/2]

void nngn::Sun::set_incidence ( float  a)

◆ set_time() [1/2]

void nngn::Sun::set_time ( duration  t)
Here is the caller graph for this function:

◆ set_time() [2/2]

void nngn::Sun::set_time ( duration  t)

◆ set_time_ms() [1/2]

void nngn::Sun::set_time_ms ( unsigned  t)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_time_ms() [2/2]

void nngn::Sun::set_time_ms ( unsigned  t)
inline
Here is the call graph for this function:

◆ set_updated() [1/2]

void nngn::Sun::set_updated ( bool  b)
inline
Here is the caller graph for this function:

◆ set_updated() [2/2]

void nngn::Sun::set_updated ( bool  b)
inline

◆ time() [1/2]

duration nngn::Sun::time ( ) const
inline
Here is the caller graph for this function:

◆ time() [2/2]

duration nngn::Sun::time ( ) const
inline

◆ time_ms() [1/2]

auto nngn::Sun::time_ms ( ) const
inline
Here is the caller graph for this function:

◆ time_ms() [2/2]

auto nngn::Sun::time_ms ( ) const
inline

◆ updated() [1/2]

bool nngn::Sun::updated ( void  ) const
inline
Here is the caller graph for this function:

◆ updated() [2/2]

bool nngn::Sun::updated ( void  ) const
inline

Member Data Documentation

◆ m_arc_len

float nngn::Sun::m_arc_len = 0
private

◆ m_cos

float nngn::Sun::m_cos = 0
private

◆ m_incidence

float nngn::Sun::m_incidence = 0
private

◆ m_sin

float nngn::Sun::m_sin = 0
private

◆ m_time

duration nngn::Sun::m_time = {}
private

◆ m_updated

bool nngn::Sun::m_updated = false
private

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