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

#include <sun.h>

Public Types

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
 

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

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

Constructor & Destructor Documentation

◆ Sun()

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

Member Function Documentation

◆ dir()

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

◆ incidence()

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

◆ set_incidence()

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

◆ set_time()

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

◆ set_time_ms()

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_updated()

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

◆ time()

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

◆ time_ms()

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

◆ updated()

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

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: