Vector data structures. More...
Data Structures | |
struct | helios::int2 |
Vector of two elements of type 'int'. More... | |
struct | helios::int3 |
Vector of three elements of type 'int'. More... | |
struct | helios::int4 |
Vector of four elements of type 'int'. More... | |
struct | helios::uint2 |
Vector of two elements of type 'unsigned int'. More... | |
struct | helios::uint3 |
Vector of three elements of type 'unsigned int'. More... | |
struct | helios::uint4 |
Vector of four elements of type 'unsigned int'. More... | |
struct | helios::vec2 |
Vector of two elements of type 'float'. More... | |
struct | helios::vec3 |
Vector of three elements of type 'float'. More... | |
struct | helios::vec4 |
Vector of four elements of type 'float'. More... | |
struct | helios::RGBcolor |
R-G-B color vector. More... | |
struct | helios::RGBAcolor |
R-G-B-A color vector. More... | |
struct | helios::Date |
Date vector. More... | |
struct | helios::Time |
Time vector. More... | |
struct | helios::Location |
Location vector. More... | |
struct | helios::SphericalCoord |
Vector of spherical coordinates (elevation,azimuth) More... | |
Functions | |
constexpr int2 | helios::make_int2 (int x, int y) |
Make an int2 vector from two ints. | |
int2 | helios::make_int2 (int X[2]) |
Make an int2 vector from an array of ints. | |
constexpr uint2 | helios::make_uint2 (unsigned int x, unsigned int y) |
Make a uint2 vector from two unsigned ints. | |
constexpr uint2 | helios::make_uint2 (unsigned int X[2]) |
Make a uint2 vector from an array of unsigned ints. | |
constexpr uint3 | helios::make_uint3 (unsigned int X, unsigned int Y, unsigned int Z) |
Make a uint3 vector from three unsigned ints. | |
constexpr uint3 | helios::make_uint3 (unsigned int X[3]) |
Make a uint3 vector from an array of unsigned ints. | |
constexpr uint4 | helios::make_uint4 (unsigned int x, unsigned int y, unsigned int z, unsigned int w) |
Make a uint4 vector from four unsigned ints. | |
constexpr uint4 | helios::make_uint4 (const unsigned int X[4]) |
Make a uint4 vector from an array of unsigned ints. | |
constexpr vec2 | helios::make_vec2 (float x, float y) |
Make a vec2 from two floats. | |
RGBcolor | helios::make_RGBcolor (float red, float green, float blue) |
Make an RGBcolor vector. | |
RGBAcolor | helios::make_RGBAcolor (float r, float g, float b, float a) |
Make an RGBAcolor vector. | |
RGBAcolor | helios::make_RGBAcolor (RGBcolor color, float a) |
Make an RGBAcolor vector (add alpha channel to RGBcolor) | |
Date | helios::make_Date (int day, int month, int year) |
Make a Date vector. | |
Date | helios::Julian2Calendar (int JulianDay, int year) |
Convert a Julian day to a calendar Date vector. | |
int | helios::Calendar2Julian (Date date) |
Convert a calendar Date vector to Julian day. | |
Date | helios::make_Date (int JulianDay, int year) |
Make a Date vector. | |
Time | helios::make_Time (int hour, int minute) |
Make a Time vector. | |
Time | helios::make_Time (int hour, int minute, int second) |
Make a Time vector. | |
Location | helios::make_Location (float latitude_deg, float longitude_deg, float UTC_offset) |
Make a Location vector. | |
Vector data structures.
|
inline |
Convert a calendar Date vector to Julian day.
[in] | date | Date vector |
Definition at line 1789 of file helios_vector_types.h.
|
inline |
Convert a Julian day to a calendar Date vector.
[in] | JulianDay | Julian day of year (0-366) |
[in] | year | Year in YYYY format |
Definition at line 1749 of file helios_vector_types.h.
|
inline |
Make a Date vector.
[in] | day | Day of month (1-31) |
[in] | month | Day of year (1-12) |
[in] | year | Year in YYYY format |
Definition at line 1723 of file helios_vector_types.h.
|
inline |
Make a Date vector.
[in] | JulianDay | Julian day of year (0-366) |
[in] | year | Year in YYYY format |
Definition at line 1815 of file helios_vector_types.h.
|
constexpr |
Make an int2 vector from two ints.
[in] | x | First component of integer vector |
[in] | y | First component of integer vector |
Definition at line 100 of file helios_vector_types.h.
|
inline |
Make an int2 vector from an array of ints.
[in] | X | 2D array if integers |
Definition at line 109 of file helios_vector_types.h.
|
inline |
Make a Location vector.
[in] | latitude_deg | Latitude in degrees (+northern hemisphere, -southern hemisphere) |
[in] | longitude_deg | Longitude in degrees (+western hemisphere, -eastern hemisphere) |
[in] | UTC_offset | Offset from UTC in hours (+moving West) |
Definition at line 1980 of file helios_vector_types.h.
|
inline |
Make an RGBAcolor vector.
[in] | r | Red component |
[in] | g | Green component |
[in] | b | Blue component |
[in] | a | Alpha (transparency) component |
Definition at line 1568 of file helios_vector_types.h.
Make an RGBAcolor vector (add alpha channel to RGBcolor)
[in] | color | RGBcolor |
[in] | a | Alpha (transparency) component |
Definition at line 1578 of file helios_vector_types.h.
|
inline |
Make an RGBcolor vector.
[in] | red | Red component |
[in] | green | Green component |
[in] | blue | Blue component |
Definition at line 1388 of file helios_vector_types.h.
|
inline |
Make a Time vector.
[in] | hour | Hour of day (0-23) |
[in] | minute | Minute of hour (0-59) |
Definition at line 1892 of file helios_vector_types.h.
|
inline |
Make a Time vector.
[in] | hour | Hour of day (0-23) |
[in] | minute | Minute of hour (0-59) |
[in] | second | Second of minute (0-59) |
Definition at line 1909 of file helios_vector_types.h.
|
constexpr |
Make a uint2 vector from two unsigned ints.
[in] | x | First component of unsigned integer vector |
[in] | y | Second component of unsigned integer vector |
Definition at line 409 of file helios_vector_types.h.
|
constexpr |
Make a uint2 vector from an array of unsigned ints.
[in] | X | 2D array of unsigned integers |
Definition at line 418 of file helios_vector_types.h.
|
constexpr |
Make a uint3 vector from three unsigned ints.
[in] | X | First component of unsigned integer vector |
[in] | Y | Second component of unsigned integer vector |
[in] | Z | Third component of unsigned integer vector |
Definition at line 521 of file helios_vector_types.h.
|
constexpr |
Make a uint3 vector from an array of unsigned ints.
[in] | X | 3D array of unsigned integers |
Definition at line 530 of file helios_vector_types.h.
|
constexpr |
Make a uint4 vector from an array of unsigned ints.
[in] | X | 4D array of unsigned integers |
Definition at line 648 of file helios_vector_types.h.
|
constexpr |
Make a uint4 vector from four unsigned ints.
[in] | x | First component of unsigned integer vector |
[in] | y | Second component of unsigned integer vector |
[in] | z | Third component of unsigned integer vector |
[in] | w | Fourth component of unsigned integer vector |
Definition at line 639 of file helios_vector_types.h.
|
constexpr |
Make a vec2 from two floats.
[in] | x | First element of vector |
[in] | y | Second element of vector |
Definition at line 790 of file helios_vector_types.h.