1.3.49
 
Loading...
Searching...
No Matches
Vectors

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.
 

Detailed Description

Vector data structures.

Function Documentation

◆ Calendar2Julian()

int helios::Calendar2Julian ( Date  date)
inline

Convert a calendar Date vector to Julian day.

Parameters
[in]dateDate vector

Definition at line 1789 of file helios_vector_types.h.

◆ Julian2Calendar()

Date helios::Julian2Calendar ( int  JulianDay,
int  year 
)
inline

Convert a Julian day to a calendar Date vector.

Parameters
[in]JulianDayJulian day of year (0-366)
[in]yearYear in YYYY format

Definition at line 1749 of file helios_vector_types.h.

◆ make_Date() [1/2]

Date helios::make_Date ( int  day,
int  month,
int  year 
)
inline

Make a Date vector.

Parameters
[in]dayDay of month (1-31)
[in]monthDay of year (1-12)
[in]yearYear in YYYY format

Definition at line 1723 of file helios_vector_types.h.

◆ make_Date() [2/2]

Date helios::make_Date ( int  JulianDay,
int  year 
)
inline

Make a Date vector.

Parameters
[in]JulianDayJulian day of year (0-366)
[in]yearYear in YYYY format

Definition at line 1815 of file helios_vector_types.h.

◆ make_int2() [1/2]

constexpr int2 helios::make_int2 ( int  x,
int  y 
)
constexpr

Make an int2 vector from two ints.

Parameters
[in]xFirst component of integer vector
[in]yFirst component of integer vector

Definition at line 100 of file helios_vector_types.h.

◆ make_int2() [2/2]

int2 helios::make_int2 ( int  X[2])
inline

Make an int2 vector from an array of ints.

Parameters
[in]X2D array if integers

Definition at line 109 of file helios_vector_types.h.

◆ make_Location()

Location helios::make_Location ( float  latitude_deg,
float  longitude_deg,
float  UTC_offset 
)
inline

Make a Location vector.

Parameters
[in]latitude_degLatitude in degrees (+northern hemisphere, -southern hemisphere)
[in]longitude_degLongitude in degrees (+western hemisphere, -eastern hemisphere)
[in]UTC_offsetOffset from UTC in hours (+moving West)

Definition at line 1980 of file helios_vector_types.h.

◆ make_RGBAcolor() [1/2]

RGBAcolor helios::make_RGBAcolor ( float  r,
float  g,
float  b,
float  a 
)
inline

Make an RGBAcolor vector.

Parameters
[in]rRed component
[in]gGreen component
[in]bBlue component
[in]aAlpha (transparency) component

Definition at line 1568 of file helios_vector_types.h.

◆ make_RGBAcolor() [2/2]

RGBAcolor helios::make_RGBAcolor ( RGBcolor  color,
float  a 
)
inline

Make an RGBAcolor vector (add alpha channel to RGBcolor)

Parameters
[in]colorRGBcolor
[in]aAlpha (transparency) component

Definition at line 1578 of file helios_vector_types.h.

◆ make_RGBcolor()

RGBcolor helios::make_RGBcolor ( float  red,
float  green,
float  blue 
)
inline

Make an RGBcolor vector.

Parameters
[in]redRed component
[in]greenGreen component
[in]blueBlue component

Definition at line 1388 of file helios_vector_types.h.

◆ make_Time() [1/2]

Time helios::make_Time ( int  hour,
int  minute 
)
inline

Make a Time vector.

Parameters
[in]hourHour of day (0-23)
[in]minuteMinute of hour (0-59)

Definition at line 1892 of file helios_vector_types.h.

◆ make_Time() [2/2]

Time helios::make_Time ( int  hour,
int  minute,
int  second 
)
inline

Make a Time vector.

Parameters
[in]hourHour of day (0-23)
[in]minuteMinute of hour (0-59)
[in]secondSecond of minute (0-59)

Definition at line 1909 of file helios_vector_types.h.

◆ make_uint2() [1/2]

constexpr uint2 helios::make_uint2 ( unsigned int  x,
unsigned int  y 
)
constexpr

Make a uint2 vector from two unsigned ints.

Parameters
[in]xFirst component of unsigned integer vector
[in]ySecond component of unsigned integer vector

Definition at line 409 of file helios_vector_types.h.

◆ make_uint2() [2/2]

constexpr uint2 helios::make_uint2 ( unsigned int  X[2])
constexpr

Make a uint2 vector from an array of unsigned ints.

Parameters
[in]X2D array of unsigned integers

Definition at line 418 of file helios_vector_types.h.

◆ make_uint3() [1/2]

constexpr uint3 helios::make_uint3 ( unsigned int  X,
unsigned int  Y,
unsigned int  Z 
)
constexpr

Make a uint3 vector from three unsigned ints.

Parameters
[in]XFirst component of unsigned integer vector
[in]YSecond component of unsigned integer vector
[in]ZThird component of unsigned integer vector

Definition at line 521 of file helios_vector_types.h.

◆ make_uint3() [2/2]

constexpr uint3 helios::make_uint3 ( unsigned int  X[3])
constexpr

Make a uint3 vector from an array of unsigned ints.

Parameters
[in]X3D array of unsigned integers

Definition at line 530 of file helios_vector_types.h.

◆ make_uint4() [1/2]

constexpr uint4 helios::make_uint4 ( const unsigned int  X[4])
constexpr

Make a uint4 vector from an array of unsigned ints.

Parameters
[in]X4D array of unsigned integers

Definition at line 648 of file helios_vector_types.h.

◆ make_uint4() [2/2]

constexpr uint4 helios::make_uint4 ( unsigned int  x,
unsigned int  y,
unsigned int  z,
unsigned int  w 
)
constexpr

Make a uint4 vector from four unsigned ints.

Parameters
[in]xFirst component of unsigned integer vector
[in]ySecond component of unsigned integer vector
[in]zThird component of unsigned integer vector
[in]wFourth component of unsigned integer vector

Definition at line 639 of file helios_vector_types.h.

◆ make_vec2()

constexpr vec2 helios::make_vec2 ( float  x,
float  y 
)
constexpr

Make a vec2 from two floats.

Parameters
[in]xFirst element of vector
[in]ySecond element of vector

Definition at line 790 of file helios_vector_types.h.