MEPP2 Project
Namespaces | Functions
FEVV::Math Namespace Reference

Namespaces

 Matrix
 
 Vector
 

Functions

template<typename OutT >
OutT convert_color_value (uint8_t color_0_255)
 
template<>
float convert_color_value< float > (uint8_t color_0_255)
 
template<>
double convert_color_value< double > (uint8_t color_0_255)
 
template<typename OutT >
OutT convert_color_value (double color_0_1)
 
template<>
uint8_t convert_color_value< uint8_t > (double color_0_1)
 
template<typename T >
deg2rad (T deg)
 
template<typename T >
rad2deg (T rad)
 

Function Documentation

◆ convert_color_value() [1/2]

template<typename OutT >
OutT FEVV::Math::convert_color_value ( double  color_0_1)

Convert color value given in [0.0; 1.0] to another type. General case, no range change, casting is enough.

Definition at line 59 of file color_conversion.hpp.

◆ convert_color_value() [2/2]

template<typename OutT >
OutT FEVV::Math::convert_color_value ( uint8_t  color_0_255)

Convert color value given in [0; 255] to another type. General case, no range change, casting is enough.

Definition at line 29 of file color_conversion.hpp.

◆ convert_color_value< double >()

template<>
double FEVV::Math::convert_color_value< double > ( uint8_t  color_0_255)
inline

Convert color value in [0; 255] to color value in [0.0; 1.0] (double).

Definition at line 49 of file color_conversion.hpp.

◆ convert_color_value< float >()

template<>
float FEVV::Math::convert_color_value< float > ( uint8_t  color_0_255)
inline

Convert color value in [0; 255] to color value in [0.0; 1.0] (float).

Definition at line 39 of file color_conversion.hpp.

◆ convert_color_value< uint8_t >()

template<>
uint8_t FEVV::Math::convert_color_value< uint8_t > ( double  color_0_1)
inline

Convert color value in [0.0; 1.0] to color value in [0; 255].

Definition at line 69 of file color_conversion.hpp.

◆ deg2rad()

template<typename T >
T FEVV::Math::deg2rad ( deg)
inline

Definition at line 20 of file degree_rad_conversion.h.

◆ rad2deg()

template<typename T >
T FEVV::Math::rad2deg ( rad)
inline

Definition at line 26 of file degree_rad_conversion.h.

Here is the caller graph for this function: