FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
visual::sky::SkyImage Class Reference

Public Member Functions

 SkyImage (std::vector< float > rgb, int width, int height, double azimuthDeg)
 
Rgb Radiance (const Vec3 &direction) const
 Radiance in a direction (NED, unit), the sun taken out; bilinear.
 
bool HasSun () const
 
const Vec3 & SunDirection () const
 
const Rgb & SunIrradiance () const
 
Rgb SkyIrradiance () const
 

Constructor & Destructor Documentation

◆ SkyImage()

visual::sky::SkyImage::SkyImage ( std::vector< float >  rgb,
int  width,
int  height,
double  azimuthDeg 
)
Parameters
[in]rgbLinear RGB, row-major, width x height x 3.
[in]widthPixels per row (360 deg).
[in]heightRows (180 deg).
[in]azimuthDegAzimuth of the image centre [deg].
Exceptions
std::invalid_argumentfor an empty image or a size that does not match.

Member Function Documentation

◆ HasSun()

bool visual::sky::SkyImage::HasSun ( ) const
inline
Returns
Whether a sun was found.

◆ SkyIrradiance()

Rgb visual::sky::SkyImage::SkyIrradiance ( ) const
Returns
Irradiance of the sky (sun taken out) on a horizontal surface, image units times sr.

◆ SunDirection()

const Vec3 & visual::sky::SkyImage::SunDirection ( ) const
inline
Returns
Towards the sun, NED, unit (straight up if none was found).

◆ SunIrradiance()

const Rgb & visual::sky::SkyImage::SunIrradiance ( ) const
inline
Returns
The sun's irradiance normal to the beam, in the image's units times sr (zero if none).

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