Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::Sun Struct Reference

#include <Sun.h>

Classes

struct  _dateTime
 

Public Member Functions

void SetLocation (F32 longitude, F32 latitude) noexcept
 
void SetDate (struct tm &dateTime) noexcept
 
SimpleTime GetTimeOfDay () const noexcept
 
SimpleLocation GetGeographicLocation () const noexcept
 
const SunInfoGetDetails () const
 
vec3< F32GetSunPosition (F32 radius=1.f) const
 

Private Attributes

SunInfo _cachedDetails
 
F32 _longitude = 0.f
 
F32 _latitude = 0.f
 
bool _dirty = true
 

Detailed Description

Definition at line 56 of file Sun.h.

Member Function Documentation

◆ GetDetails()

const SunInfo & Divide::Sun::GetDetails ( ) const

Definition at line 225 of file Sun.cpp.

◆ GetGeographicLocation()

SimpleLocation Divide::Sun::GetGeographicLocation ( ) const
noexcept

Definition at line 218 of file Sun.cpp.

◆ GetSunPosition()

vec3< F32 > Divide::Sun::GetSunPosition ( F32  radius = 1.f) const

Definition at line 234 of file Sun.cpp.

◆ GetTimeOfDay()

SimpleTime Divide::Sun::GetTimeOfDay ( ) const
noexcept

Definition at line 211 of file Sun.cpp.

◆ SetDate()

void Divide::Sun::SetDate ( struct tm &  dateTime)
noexcept

Definition at line 201 of file Sun.cpp.

◆ SetLocation()

void Divide::Sun::SetLocation ( F32  longitude,
F32  latitude 
)
noexcept

Definition at line 190 of file Sun.cpp.

Member Data Documentation

◆ _cachedDetails

SunInfo Divide::Sun::_cachedDetails
mutableprivate

Definition at line 67 of file Sun.h.

◆ _dirty

bool Divide::Sun::_dirty = true
mutableprivate

Definition at line 71 of file Sun.h.

◆ _latitude

F32 Divide::Sun::_latitude = 0.f
private

Definition at line 69 of file Sun.h.

◆ _longitude

F32 Divide::Sun::_longitude = 0.f
private

Definition at line 68 of file Sun.h.


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