FireSTARR
Loading...
Searching...
No Matches
fs::StartPoint Class Reference

A Point that has sunrise and sunset times for each day. More...

#include <StartPoint.h>

Inheritance diagram for fs::StartPoint:
Collaboration diagram for fs::StartPoint:

Public Member Functions

 StartPoint (MathSize latitude, MathSize longitude) noexcept
 Constructor.
 
 StartPoint (const StartPoint &rhs) noexcept=default
 
 StartPoint (StartPoint &&rhs) noexcept=default
 
StartPoint & operator= (const StartPoint &rhs)=default
 
StartPoint & operator= (StartPoint &&rhs) noexcept
 
constexpr DurationSize dayStart (const size_t day) const
 Sunrise time.
 
constexpr DurationSize dayEnd (const size_t day) const
 Sunset time.
 
- Public Member Functions inherited from fs::Point
constexpr Point (const MathSize latitude, const MathSize longitude) noexcept
 Constructor.
 
 Point (const Point &rhs) noexcept=default
 
 Point (Point &&rhs) noexcept=default
 
Point & operator= (const Point &rhs) noexcept=default
 
Point & operator= (Point &&rhs) noexcept=default
 
constexpr MathSize latitude () const noexcept
 Latitude (decimal degrees)
 
constexpr MathSize longitude () const noexcept
 Longitude (decimal degrees)
 

Private Attributes

array< tuple< DurationSize, DurationSize >, MAX_DAYS > days_
 Array of tuple for sunrise/sunset times by day.
 

Detailed Description

A Point that has sunrise and sunset times for each day.

Constructor & Destructor Documentation

◆ StartPoint()

fs::StartPoint::StartPoint ( MathSize latitude,
MathSize longitude )
noexcept

Constructor.

Parameters
latitudeLatitude (decimal degrees)
longitudeLongitude (decimal degrees)

Member Function Documentation

◆ dayEnd()

DurationSize fs::StartPoint::dayEnd ( const size_t day) const
inlinenodiscardconstexpr

Sunset time.

Parameters
dayDay
Returns
Sunset time on give day
Here is the caller graph for this function:

◆ dayStart()

DurationSize fs::StartPoint::dayStart ( const size_t day) const
inlinenodiscardconstexpr

Sunrise time.

Parameters
dayDay
Returns
Sunrise time on give day
Here is the caller graph for this function:

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