scifir-units 2.0.0
scifir-units is a library of units of measurement, angles, coordinates, fields, and related data, all lightweight, that help in the development of scientific software and scientific machines
|
The namespace scifir contains all scifir-units, excepting the string literals, which are outside. More...
Classes | |
class | address |
class | aid |
Class that stores astronomical ids, not as an integer but with an string as identifier. Initialization string example: "(P) universe:milky-way:solar-system:earth". More... | |
class | angle |
Class that allows to work with angles. Each angle sizes 4 bytes. Initialization string example: "20°". More... | |
class | color |
class | complex_number |
class | conversion |
class | coordinates_1d |
class | coordinates_1d< float > |
class | coordinates_2d |
class | coordinates_2d< float > |
class | coordinates_2dr |
class | coordinates_2dr< float > |
class | coordinates_3d |
Class that represents the position in 3D spaces. The space can be a length or, for the case of imaginary spaces, any custom dimension. The most interesting feature is the fact that all the coordinates systems in 3D are present at the same time, it's possible to use cartesian, cylindrical or spherical coordinates as needed for the same instance of coordinates, it's not needed to select just one of those systems. The geographical coordinates aren't yet finished. More... | |
class | coordinates_3d< float > |
Specialization of coordinates_3d, with the same behaviour and functions, that is specialized for float types. It can be used when it's needed to save memory, because a float uses less memory than a scalar_unit. More... | |
class | coordinates_3dr |
class | coordinates_3dr< float > |
class | coordinates_nd |
class | coordinates_nd< float > |
class | coordinates_ndr |
class | coordinates_ndr< float > |
class | dimension |
Class that represents dimensions of the SI system of units. Each dimension sizes 6 bytes, 1 byte for the dimension type, 1 byte for the prefix, 1 byte for the position (which can be the NUMERATOR or the DENOMINATOR), and 3 bytes for the custom dimension (in case it's used one). A base dimension is a dimension that doesn't has more base dimensions, a derived dimension has always base dimensions from which it's defined. More... | |
class | direction |
struct | is_integer_number |
struct | is_number |
class | lab_number |
class | latitude |
class | longitude |
class | matrix |
class | percentage |
Class that allows to handle percentages and do calculations with it easy. It supports normal percentages (with %), ppm, ppb, ppt and ppq. The types ppb, ppt and ppq are currently not supported because the float type in percentage class can't store so lower values. More... | |
class | pixel |
class | prefix |
Class that represents prefixes of the SI system of units. Each prefix sizes 1 byte. The prefix micro is added to a dimension with the symbol µ. More... | |
class | scalar_unit |
Class that allows to create scalar units, which are composed of a value (as a float) and dimensions. The dimensions can be of any number, and be simple dimensions, composite dimensions and/or special names of dimensions. All base and derived scalar unit classes inherit from scalar_unit. Initialization string example: "1 N". More... | |
class | size_2d |
Class that allows to store and calculate size in 2D, with width and height. The template parameter T allows to select any scalar_unit or numeric type to be the type of width and height (they always have the same type in the same instance). The width and height can be any scalar_unit, usually length, but imaginary spaces with custom dimensions are also allowed. Initialization string example: "1 m * 2 m". More... | |
class | size_2d< float > |
Specialization class of size_2d<T> that allows to store and calculate size in 2D, with width and height as float types. Initialization string example: "1 * 2". More... | |
class | size_3d |
Class that allows to store and calculate size in 3D, with width, height and depth. The template parameter T allows to select any scalar_unit or numeric type to be the type of the width, the height and the depth (they always have the same type in the same instance). The width, height and depth can be any scalar_unit, usually length, but imaginary spaces with custom dimensions are also allowed. Initialization string example: "1 m * 2 m * 4 m". More... | |
class | size_3d< float > |
Specialization class of size_3d<T> that allows to store and calculate size in 3D, with width, height and depth as float types. Initialization string example: "1 * 2 * 4". More... | |
class | size_nd |
class | size_nd< float > |
class | time_duration |
class | vector_unit_2d |
Class that creates a vector unit in 2D. The vector is in polar coordinates with a value and dimensions of the scalar_unit, and an angle theta for his direction. All base and derived vectorial unit classes in 2D inherit from vector_unit_2d, and add the suffix **_2d** in their name. Initialization string example: "1 N 20θ". 'θ' is the Unicode Character U+03B8. More... | |
class | vector_unit_3d |
Class that creates a vector unit in 3D. The vector is in spherical coordinates with a value and dimensions of the scalar_unit, and an angle theta and another angle phi for his direction. All base and derived vectorial unit classes in 3D inherit from vector_unit_3d, and add the suffix **_3d** in their name. Initialization string example: "1 N 20θ 30Φ". 'θ' is the Unicode Character U+03B8. 'Φ' is the Unicode Character U+03A6. More... | |
class | vector_unit_nd |
Class that creates a vector in ND, which means a variable number of dimensions. A vector_unit_nd can change to be in 1D, in 2D or in 3D, but it cannot be in more than one dimension at the same time. The member-variables of vector_unit_nd are the value and the vector<dimension> of scalar_unit, and a vector<angle> angles. The number of angles is equal to the number of dimensions vector unit has - 1. In 1D vector_unit_nd doesn't has angles, in 2D vector_unit_nd is in polar coordinates and has 1 angle, and in 3D vector_unit_nd is in spherical coordinates and has 2 angles. All base and derived vectorial unit classes in ND inherit from vector_unit_nd, and add the suffix **_nd** in their name. Initialization string example: "1 N 20° 30° 40°". '°' is the Unicode Character U+00B0. More... | |
class | zid |
Class that allows to store information about a zone, including the astronomical object inside which the zone is. The zone can be in any astronomical object, not only the Earth is supported. Initialization string example: "(P) universe:milky-way:solar-system:earth (Z) chile:region-metropolitana:santiago:providencia". More... | |
Typedefs | |
typedef length | wavelength |
Enumerations | |
enum class | astronomical_body : int8_t { NONE , MILKY_WAY , ANDROMEDA , SOLAR_SYSTEM , SUN , MOON , MERCURY , VENUS , EARTH , MARS , JUPITER , SATURN , URANUS , NEPTUNE , CERES , ORCUS , PLUTO , HAUMEA , QUAOAR , MAKEMAKE , GONGGONG , ERIS , SEDNA , IO , EUROPA , GANYMEDE , CALLISTO , MIMAS , ENCELADUS , TETHYS , DIONE , RHEA , TITAN , IAPETUS , MIRANDA , ARIEL , UMBRIEL , TITANIA , OBERON , TRITON , CHARON , DYSNOMIA } |
Contains predefined astronomical bodies to be set automatically in the aid class. All of them are important astronomical bodies, unimportant astronomical bodies aren't included. More... | |
enum class | cardinale_point { NORTH , SOUTH , EAST , WEST } |
Functions | |
string | to_string (const aid &x) |
Creates a string representation of aid, it's for aid equivalent to the display() function of aid. | |
string | to_string (const aid::type &x) |
Converts a value of the enum aid::type to its string representation, which can be a single or a pair of letters. The value UNIVERSE returns U. The value GALAXY returns G. The value SOLAR_SYSTEM returns SS. The value PLANET returns P. The value STAR returns ST. The value ASTEROID returns A. The value MOON returns MN. The value METEOR returns MT. The value NONE returns an empty string. | |
aid::type | create_astronomical_type (const string &astronomical_type_abbreviation) |
Creates an instance of an aid::type with the given string, which is the reverse as the to_string() function of aid::type. | |
string | to_string (const coordinates_1d< float > &x) |
float | distance (const coordinates_1d< float > &x, const coordinates_1d< float > &y) |
template<typename T > | |
string | to_string (const coordinates_1d< T > &x) |
template<typename T , typename U > | |
T | distance (const coordinates_1d< T > &x, const coordinates_1d< U > &y) |
string | to_string (const coordinates_2d< float > &x) |
float | distance (const coordinates_2d< float > &x, const coordinates_2d< float > &y) |
template<typename T > | |
string | to_string (const coordinates_2d< T > &x) |
template<typename T , typename U > | |
T | distance (const coordinates_2d< T > &x, const coordinates_2d< U > &y) |
scalar_unit | cartesian_2d_to_polar_p (const scalar_unit &x, scalar_unit y) |
angle | cartesian_2d_to_polar_theta (const scalar_unit &x, scalar_unit y) |
scalar_unit | polar_to_cartesian_2d_x (const scalar_unit &p, const angle &theta) |
scalar_unit | polar_to_cartesian_2d_y (const scalar_unit &p, const angle &theta) |
float | cartesian_2d_to_polar_p (float x, float y) |
angle | cartesian_2d_to_polar_theta (float x, float y) |
float | polar_to_cartesian_2d_x (float p, const angle &theta) |
float | polar_to_cartesian_2d_y (float p, const angle &theta) |
string | to_string (const coordinates_2dr< float > &x) |
float | distance (const coordinates_2dr< float > &x, const coordinates_2dr< float > &y) |
float | distance (const coordinates_2dr< float > &x, const coordinates_2d< float > &y) |
float | distance (const coordinates_2d< float > &x, const coordinates_2dr< float > &y) |
template<typename T > | |
string | to_string (const coordinates_2dr< T > &x) |
template<typename T , typename U > | |
T | distance (const coordinates_2dr< T > &x, const coordinates_2dr< U > &y) |
template<typename T , typename U > | |
T | distance (const coordinates_2dr< T > &x, const coordinates_2d< U > &y) |
template<typename T , typename U > | |
T | distance (const coordinates_2d< T > &x, const coordinates_2dr< U > &y) |
string | to_string (cardinale_point x) |
string | to_string (const coordinates_3d< float > &x) |
Returns the string representation of coordinates_3d<float>. | |
cardinale_point | create_cardinale_point (const string &x) |
float | distance (const coordinates_3d< float > &x, const coordinates_3d< float > &y) |
Calculates the distance between two coordinates_3d<float>. | |
latitude | ECEF_to_LLA_latitude (const scalar_unit &x, scalar_unit y, const scalar_unit &z) |
longitude | ECEF_to_LLA_longitude (const scalar_unit &x, scalar_unit y, const scalar_unit &z) |
scalar_unit | ECEF_to_LLA_altitude (const scalar_unit &x, scalar_unit y, const scalar_unit &z) |
scalar_unit | LLA_to_ECEF_x (const latitude &latitude, const longitude &longitude, scalar_unit altitude) |
scalar_unit | LLA_to_ECEF_y (const latitude &latitude, const longitude &longitude, scalar_unit altitude) |
scalar_unit | LLA_to_ECEF_z (const latitude &latitude, const longitude &longitude, scalar_unit altitude) |
latitude | ECEF_to_LLA_latitude (float x, float y, float z) |
longitude | ECEF_to_LLA_longitude (float x, float y, float z) |
float | ECEF_to_LLA_altitude (float x, float y, float z) |
template<typename T > | |
string | to_string (const coordinates_3d< T > &x) |
Returns the string representation of coordinates_3d. | |
template<typename T , typename U > | |
T | distance (const coordinates_3d< T > &x, const coordinates_3d< U > &y) |
Calculates the distance between two coordinates_3d. | |
scalar_unit | cartesian_3d_to_cylindrical_p (const scalar_unit &x, scalar_unit y, const scalar_unit &z) |
Returns the p coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D. | |
angle | cartesian_3d_to_cylindrical_theta (const scalar_unit &x, scalar_unit y, const scalar_unit &z) |
Returns the theta coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D. | |
scalar_unit | cartesian_3d_to_cylindrical_z (const scalar_unit &x, const scalar_unit &y, const scalar_unit &z) |
Returns the z coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D. | |
scalar_unit | cartesian_3d_to_spherical_r (const scalar_unit &x, scalar_unit y, scalar_unit z) |
Returns the r coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D. | |
angle | cartesian_3d_to_spherical_theta (const scalar_unit &x, scalar_unit y, const scalar_unit &z) |
Returns the theta coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D. | |
angle | cartesian_3d_to_spherical_phi (const scalar_unit &x, scalar_unit y, scalar_unit z) |
Returns the phi coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D. | |
scalar_unit | spherical_to_cartesian_3d_x (const scalar_unit &r, const angle &theta, const angle &phi) |
Returns the x coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates. | |
scalar_unit | spherical_to_cartesian_3d_y (const scalar_unit &r, const angle &theta, const angle &phi) |
Returns the y coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates. | |
scalar_unit | spherical_to_cartesian_3d_z (const scalar_unit &r, const angle &theta, const angle &phi) |
Returns the z coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates. | |
scalar_unit | spherical_to_cylindrical_p (const scalar_unit &r, const angle &theta, const angle &phi) |
Returns the p coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates. | |
angle | spherical_to_cylindrical_theta (const scalar_unit &r, const angle &theta, const angle &phi) |
Returns the theta coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates. | |
scalar_unit | spherical_to_cylindrical_z (const scalar_unit &r, const angle &theta, const angle &phi) |
Returns the z coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates. | |
scalar_unit | cylindrical_to_cartesian_3d_x (const scalar_unit &p, const angle &theta, const scalar_unit &z) |
Returns the x coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates. | |
scalar_unit | cylindrical_to_cartesian_3d_y (const scalar_unit &p, const angle &theta, const scalar_unit &z) |
Returns the y coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates. | |
scalar_unit | cylindrical_to_cartesian_3d_z (const scalar_unit &p, const angle &theta, const scalar_unit &z) |
Returns the z coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates. | |
scalar_unit | cylindrical_to_spherical_r (const scalar_unit &p, const angle &theta, scalar_unit z) |
Returns the r coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates. | |
angle | cylindrical_to_spherical_theta (const scalar_unit &p, const angle &theta, const scalar_unit &z) |
Returns the theta coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates. | |
angle | cylindrical_to_spherical_phi (const scalar_unit &p, const angle &theta, scalar_unit z) |
Returns the phi coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates. | |
float | cartesian_3d_to_cylindrical_p (float x, float y, float z) |
Returns the p coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D. | |
angle | cartesian_3d_to_cylindrical_theta (float x, float y, float z) |
Returns the theta coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D. | |
float | cartesian_3d_to_cylindrical_z (float x, float y, float z) |
Returns the z coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D. | |
float | cartesian_3d_to_spherical_r (float x, float y, float z) |
Returns the r coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D. | |
angle | cartesian_3d_to_spherical_theta (float x, float y, float z) |
Returns the theta coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D. | |
angle | cartesian_3d_to_spherical_phi (float x, float y, float z) |
Returns the phi coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D. | |
float | spherical_to_cartesian_3d_x (float r, const angle &theta, const angle &phi) |
Returns the x coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates. | |
float | spherical_to_cartesian_3d_y (float r, const angle &theta, const angle &phi) |
Returns the y coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates. | |
float | spherical_to_cartesian_3d_z (float r, const angle &theta, const angle &phi) |
Returns the z coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates. | |
float | spherical_to_cylindrical_p (float r, const angle &theta, const angle &phi) |
Returns the p coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates. | |
angle | spherical_to_cylindrical_theta (float r, const angle &theta, const angle &phi) |
Returns the theta coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates. | |
float | spherical_to_cylindrical_z (float r, const angle &theta, const angle &phi) |
Returns the z coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates. | |
float | cylindrical_to_cartesian_3d_x (float p, const angle &theta, float z) |
Returns the x coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates. | |
float | cylindrical_to_cartesian_3d_y (float p, const angle &theta, float z) |
Returns the y coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates. | |
float | cylindrical_to_cartesian_3d_z (float p, const angle &theta, float z) |
Returns the z coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates. | |
float | cylindrical_to_spherical_r (float p, const angle &theta, float z) |
Returns the r coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates. | |
angle | cylindrical_to_spherical_theta (float p, const angle &theta, float z) |
Returns the theta coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates. | |
angle | cylindrical_to_spherical_phi (float p, const angle &theta, float z) |
Returns the phi coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates. | |
string | to_string (const coordinates_3dr< float > &x) |
float | distance (const coordinates_3dr< float > &x, const coordinates_3dr< float > &y) |
float | distance (const coordinates_3dr< float > &x, const coordinates_3d< float > &y) |
float | distance (const coordinates_3d< float > &x, const coordinates_3dr< float > &y) |
template<typename T > | |
string | to_string (const coordinates_3dr< T > &x) |
template<typename T , typename U > | |
T | distance (const coordinates_3dr< T > &x, const coordinates_3dr< U > &y) |
template<typename T , typename U > | |
T | distance (const coordinates_3dr< T > &x, const coordinates_3d< U > &y) |
template<typename T , typename U > | |
T | distance (const coordinates_3d< T > &x, const coordinates_3dr< U > &y) |
string | to_string (const coordinates_nd< float > &x) |
float | distance (const coordinates_nd< float > &x, const coordinates_nd< float > &y) |
template<typename T > | |
string | to_string (const coordinates_nd< T > &x) |
template<typename T , typename U > | |
T | distance (const coordinates_nd< T > &x, const coordinates_nd< U > &y) |
string | to_string (const coordinates_ndr< float > &x) |
float | distance (const coordinates_ndr< float > &x, const coordinates_ndr< float > &y) |
float | distance (const coordinates_ndr< float > &x, const coordinates_nd< float > &y) |
float | distance (const coordinates_nd< float > &x, const coordinates_ndr< float > &y) |
template<typename T > | |
string | to_string (const coordinates_ndr< T > &x) |
template<typename T , typename U > | |
T | distance (const coordinates_ndr< T > &x, const coordinates_ndr< U > &y) |
template<typename T , typename U > | |
T | distance (const coordinates_ndr< T > &x, const coordinates_nd< U > &y) |
template<typename T , typename U > | |
T | distance (const coordinates_nd< T > &x, const coordinates_ndr< U > &y) |
direction::name | create_direction (const string &x) |
direction::name | invert (direction::name x) |
string | to_string (direction::name x) |
string | to_string (const direction &x) |
bool | is_latitude (const string &init_latitude) |
bool | is_longitude (const string &init_longitude) |
string | to_string (const zid &x) |
Returns a string representation of zid, same as display(). | |
string | to_string (const zid::type &x) |
Converts a value of the enum zid::type to its string representation, which is a single letter. The value COUNTRY returns C. The value REGION returns R. The value SETTLEMENT returns S. The value ZONE returns Z. | |
zid::type | create_zone_type (const string &zone_type_abbreviation) |
Creates an instance of a zid::type with the given string, which is the reverse as the to_string() function of zid::type. | |
string | to_string (const angle &x) |
Converts an angle to their string representation. | |
bool | is_angle (const string &init_angle) |
Checks if some string is an initialization string of an angle. | |
bool | parallel (const angle &x, const angle &y) |
Checks if two angles in a 2D correspond to parallel lines (or parallel vectors). | |
bool | orthogonal (const angle &x, const angle &y) |
Checks if two angles in a 2D correspond to orthogonal lines (or orthogonal vectors). | |
angle | sqrt (const angle &x) |
Calculates the square root of the angle x and returns that new angle. | |
angle | sqrt_nth (const angle &x, int index) |
Calculates the nth root of the angle x and returns that new angle. | |
float | sin (const angle &x) |
Calculates the sin of angle x. It uses the sin() function of the standard library of C++, the difference is that angle is in degrees, not in radians. | |
float | cos (const angle &x) |
Calculates the cos of angle x. It uses the cos() function of the standard library of C++, the difference is that angle is in degrees, not in radians. | |
float | tan (const angle &x) |
Calculates the tan of angle x. It uses the tan() function of the standard library of C++, the difference is that angle is in degrees, not in radians. | |
angle | asin (float x) |
Calculates the asin of some value x and returns the result as angle in degrees. | |
angle | acos (float x) |
Calculates the acos of some value x and returns the result as angle in degrees. | |
angle | atan (float x) |
Calculates the atan of some value x and returns the result as angle in degrees. | |
angle | atan2 (float y, float x) |
float | sinh (const angle &x) |
Calculates the sinh of angle x. It uses the sinh() function of the standard library of C++, the difference is that angle is in degrees, not in radians. | |
float | cosh (const angle &x) |
Calculates the cosh of angle x. It uses the cosh() function of the standard library of C++, the difference is that angle is in degrees, not in radians. | |
float | tanh (const angle &x) |
Calculates the tanh of angle x. It uses the tanh() function of the standard library of C++, the difference is that angle is in degrees, not in radians. | |
angle | asinh (float x) |
Calculates the asinh of some value x and returns the result as angle in degrees. | |
angle | acosh (float x) |
Calculates the acosh of some value x and returns the result as angle in degrees. | |
angle | atanh (float x) |
Calculates the atanh of some value x and returns the result as angle in degrees. | |
float | radian_to_degree (float x) |
Converts a radian to degree. | |
float | gradian_to_degree (float x) |
float | turn_to_degree (float x) |
float | degree_to_radian (float x) |
Converts a degree to a radian. | |
float | gradian_to_radian (float x) |
float | turn_to_radian (float x) |
float | degree_to_gradian (float x) |
float | radian_to_gradian (float x) |
float | turn_to_gradian (float x) |
float | degree_to_turn (float x) |
float | radian_to_turn (float x) |
float | gradian_to_turn (float x) |
float | asin_degree (float x) |
Calculates the asin receiving x in degrees. It uses the asin() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians. | |
float | acos_degree (float x) |
Calculates the acos receiving x in degrees. It uses the acos() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians. | |
float | atan_degree (float x) |
Calculates the atan receiving x in degrees. It uses the atan() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians. | |
float | asinh_degree (float x) |
Calculates the asinh receiving x in degrees. It uses the asinh() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians. | |
float | acosh_degree (float x) |
Calculates the acosh receiving x in degrees. It uses the acosh() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians. | |
float | atanh_degree (float x) |
Calculates the atanh receiving x in degrees. It uses the atanh() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians. | |
bool | is_complex (const string &init_complex_number) |
template<typename T > | |
string | to_string (const complex_number< T > &x) |
template<typename T > | |
T | abs (const complex_number< T > &x) |
template<typename T > | |
complex_number< scalar_unit > | sqrt (const complex_number< T > &x) |
bool | is_lab_number (const string &init_lab_number) |
template<typename T > | |
string | to_string (const lab_number< T > &x) |
string | to_string (const percentage &x) |
Returns a string representation of percentage x. | |
bool | is_percentage (const string &init_percentage) |
Checks if a string is an initialization string of percentage. | |
VECTOR_UNIT_CPP (specific_angular_momentum,"m2/s") | |
VECTOR_UNIT_HPP (specific_angular_momentum) | |
SCALAR_UNIT_CPP (brain_memory,"memo") | |
SCALAR_UNIT_HPP (brain_memory) | |
SCALAR_UNIT_CPP (density,"g/m3") | |
SCALAR_UNIT_CPP (viscosity,"m2/s") | |
SCALAR_UNIT_CPP (specific_volume,"m3/g") | |
SCALAR_UNIT_CPP (specific_heat_capacity,"J/K*kg") | |
SCALAR_UNIT_CPP (specific_entropy,"m2/s2*K") | |
SCALAR_UNIT_CPP (specific_energy,"m2/s2") | |
SCALAR_UNIT_CPP (molar_volume,"m3/mol") | |
SCALAR_UNIT_CPP (molar_mass,"g/mol") | |
SCALAR_UNIT_CPP (molar_heat_capacity,"m2*g/s2*K*mol") | |
SCALAR_UNIT_CPP (molar_enthalpy,"m2*g/s2*mol") | |
SCALAR_UNIT_CPP (molar_entropy,"m2*g/s2*K*mol") | |
SCALAR_UNIT_CPP (molar_energy,"m2*g/s2*mol") | |
SCALAR_UNIT_CPP (molar_conductivity,"s3*A2/g*mol") | |
SCALAR_UNIT_CPP (energy_density,"g/m*s2") | |
SCALAR_UNIT_CPP (catalytic_efficiency,"m3/s*mol") | |
SCALAR_UNIT_CPP (molarity,"M") | |
SCALAR_UNIT_CPP (molality,"mol/g") | |
SCALAR_UNIT_CPP (linear_mass_density,"g/m") | |
SCALAR_UNIT_CPP (area_density,"g/m2") | |
SCALAR_UNIT_CPP (dynamic_viscosity,"g/m*s") | |
SCALAR_UNIT_CPP (mass_flow_rate,"g/s") | |
SCALAR_UNIT_CPP (catalytic_activity,"kat") | |
SCALAR_UNIT_CPP (amount_of_effect,"IU") | |
SCALAR_UNIT_HPP (density) | |
SCALAR_UNIT_HPP (viscosity) | |
SCALAR_UNIT_HPP (specific_volume) | |
SCALAR_UNIT_HPP (specific_heat_capacity) | |
SCALAR_UNIT_HPP (specific_entropy) | |
SCALAR_UNIT_HPP (specific_energy) | |
SCALAR_UNIT_HPP (molar_volume) | |
SCALAR_UNIT_HPP (molar_mass) | |
SCALAR_UNIT_HPP (molar_heat_capacity) | |
SCALAR_UNIT_HPP (molar_enthalpy) | |
SCALAR_UNIT_HPP (molar_entropy) | |
SCALAR_UNIT_HPP (molar_energy) | |
SCALAR_UNIT_HPP (molar_conductivity) | |
SCALAR_UNIT_HPP (energy_density) | |
SCALAR_UNIT_HPP (catalytic_efficiency) | |
SCALAR_UNIT_HPP (molarity) | |
SCALAR_UNIT_HPP (molality) | |
SCALAR_UNIT_HPP (linear_mass_density) | |
SCALAR_UNIT_HPP (area_density) | |
SCALAR_UNIT_HPP (dynamic_viscosity) | |
SCALAR_UNIT_HPP (mass_flow_rate) | |
SCALAR_UNIT_HPP (catalytic_activity) | |
SCALAR_UNIT_HPP (amount_of_effect) | |
SCALAR_UNIT_CPP (electrical_conductivity,"S/m") | |
SCALAR_UNIT_CPP (resistance,"Ω") | |
SCALAR_UNIT_CPP (electric_conductance,"S") | |
SCALAR_UNIT_CPP (capacitance,"F") | |
SCALAR_UNIT_CPP (permittivity,"F/m") | |
SCALAR_UNIT_CPP (resistivity,"Ω*m") | |
SCALAR_UNIT_CPP (linear_charge_density,"C/m") | |
SCALAR_UNIT_CPP (surface_charge_density,"C/m2") | |
SCALAR_UNIT_CPP (volume_charge_density,"C/m3") | |
SCALAR_UNIT_CPP (frequency_drift,"1/s2") | |
SCALAR_UNIT_HPP (electrical_conductivity) | |
SCALAR_UNIT_HPP (resistance) | |
SCALAR_UNIT_HPP (electric_conductance) | |
SCALAR_UNIT_HPP (capacitance) | |
SCALAR_UNIT_HPP (permittivity) | |
SCALAR_UNIT_HPP (resistivity) | |
SCALAR_UNIT_HPP (linear_charge_density) | |
SCALAR_UNIT_HPP (surface_charge_density) | |
SCALAR_UNIT_HPP (volume_charge_density) | |
SCALAR_UNIT_HPP (frequency_drift) | |
SCALAR_UNIT_CPP (transfer_speed,"B/s") | |
SCALAR_UNIT_HPP (transfer_speed) | |
VECTOR_UNIT_2D_CPP (displacement,"m") | |
VECTOR_UNIT_3D_CPP (displacement,"m") | |
VECTOR_UNIT_ND_CPP (displacement,"m") | |
VECTOR_UNIT_CPP (velocity,"m/s") | |
VECTOR_UNIT_CPP (acceleration,"m/s2") | |
VECTOR_UNIT_CPP (momentum,"kg*m/s") | |
VECTOR_UNIT_CPP (jerk,"m/s3") | |
VECTOR_UNIT_CPP (snap,"m/s4") | |
VECTOR_UNIT_CPP (angular_velocity,"rad/s") | |
VECTOR_UNIT_CPP (angular_acceleration,"rad/s2") | |
VECTOR_UNIT_CPP (angular_momentum,"m2*kg/s") | |
VECTOR_UNIT_CPP (impulse,"m*kg/s") | |
VECTOR_UNIT_CPP (force,"N") | |
VECTOR_UNIT_CPP (torque,"kg*m2/s2") | |
VECTOR_UNIT_CPP (pressure,"Pa") | |
VECTOR_UNIT_CPP (surface_tension,"kg/s2") | |
SCALAR_UNIT_CPP (stiffness,"kg/s2") | |
SCALAR_UNIT_CPP (moment_of_inertia,"m2*kg") | |
VECTOR_UNIT_CPP (yank,"N/s") | |
SCALAR_UNIT_CPP (electric_current,"A") | |
SCALAR_UNIT_CPP (voltage,"V") | |
VECTOR_UNIT_CPP (electric_displacement_field,"C/m2") | |
SCALAR_UNIT_CPP (electric_charge_density,"C/m3") | |
SCALAR_UNIT_CPP (electric_current_density,"A/m2") | |
VECTOR_UNIT_CPP (electric_field_strength,"V/m") | |
SCALAR_UNIT_CPP (electron_mobility,"m2/V*s") | |
SCALAR_UNIT_CPP (inductance,"H") | |
SCALAR_UNIT_CPP (volumetric_flow,"m3/s") | |
SCALAR_UNIT_CPP (diffusion_coefficient,"m2/s") | |
SCALAR_UNIT_CPP (compressibility,"m*s2/kg") | |
SCALAR_UNIT_CPP (polarization_density,"C/m2") | |
SCALAR_UNIT_CPP (magnetic_permeability,"H/m") | |
SCALAR_UNIT_CPP (magnetization,"A/m") | |
SCALAR_UNIT_CPP (magnetic_flux,"Wb") | |
VECTOR_UNIT_CPP (magnetic_flux_density,"T") | |
VECTOR_UNIT_CPP (magnetic_moment,"Wb*m") | |
SCALAR_UNIT_CPP (magnetic_reluctance,"1/H") | |
VECTOR_UNIT_CPP (magnetic_vector_potential,"Wb/m") | |
SCALAR_UNIT_CPP (magnetic_rigidity,"T*m") | |
VECTOR_UNIT_CPP (magnetomotive_force,"A*rad") | |
SCALAR_UNIT_CPP (magnetic_susceptibility,"m/H") | |
SCALAR_UNIT_CPP (optical_power,"1/m") | |
SCALAR_UNIT_CPP (illuminance,"lx") | |
SCALAR_UNIT_CPP (luminous_flux,"lm") | |
SCALAR_UNIT_CPP (luminous_energy,"lm*s") | |
SCALAR_UNIT_CPP (luminous_exposure,"lx*s") | |
SCALAR_UNIT_CPP (luminous_efficacy,"lm/W") | |
SCALAR_UNIT_CPP (ionizing_radiation,"Gy") | |
SCALAR_UNIT_CPP (absorbed_dose,"Gy/s") | |
SCALAR_UNIT_CPP (energy,"J") | |
SCALAR_UNIT_CPP (action,"kg*m2/s") | |
SCALAR_UNIT_CPP (power,"W") | |
SCALAR_UNIT_CPP (power_density,"kg/m*s3") | |
SCALAR_UNIT_CPP (entropy,"kg*m2/K*s2") | |
SCALAR_UNIT_CPP (heat_capacity,"J/K") | |
SCALAR_UNIT_CPP (heat_flux_density,"kg/s3") | |
SCALAR_UNIT_CPP (thermal_conductivity,"W/m*K") | |
SCALAR_UNIT_CPP (thermal_diffusivity,"m2/s") | |
SCALAR_UNIT_CPP (thermal_resistance,"K/W") | |
SCALAR_UNIT_CPP (thermal_expansion_coefficient,"1/K") | |
VECTOR_UNIT_CPP (temperature_gradient,"K/m") | |
SCALAR_UNIT_CPP (energy_flux_density,"kg/s3") | |
SCALAR_UNIT_CPP (fuel_efficiency,"1/m2") | |
SCALAR_UNIT_CPP (wavenumber,"1/m") | |
SCALAR_UNIT_CPP (frequency,"Hz") | |
SCALAR_UNIT_CPP (sound_power,"dB") | |
VECTOR_UNIT_2D_HPP (displacement) | |
VECTOR_UNIT_3D_HPP (displacement) | |
VECTOR_UNIT_ND_HPP (displacement) | |
VECTOR_UNIT_HPP (velocity) | |
VECTOR_UNIT_HPP (acceleration) | |
VECTOR_UNIT_HPP (momentum) | |
VECTOR_UNIT_HPP (jerk) | |
VECTOR_UNIT_HPP (snap) | |
VECTOR_UNIT_HPP (angular_velocity) | |
VECTOR_UNIT_HPP (angular_acceleration) | |
VECTOR_UNIT_HPP (angular_momentum) | |
VECTOR_UNIT_HPP (impulse) | |
VECTOR_UNIT_HPP (force) | |
VECTOR_UNIT_HPP (torque) | |
VECTOR_UNIT_HPP (pressure) | |
VECTOR_UNIT_HPP (surface_tension) | |
SCALAR_UNIT_HPP (stiffness) | |
SCALAR_UNIT_HPP (moment_of_inertia) | |
VECTOR_UNIT_HPP (yank) | |
SCALAR_UNIT_HPP (electric_current) | |
SCALAR_UNIT_HPP (voltage) | |
VECTOR_UNIT_HPP (electric_displacement_field) | |
SCALAR_UNIT_HPP (electric_charge_density) | |
SCALAR_UNIT_HPP (electric_current_density) | |
VECTOR_UNIT_HPP (electric_field_strength) | |
SCALAR_UNIT_HPP (electron_mobility) | |
SCALAR_UNIT_HPP (inductance) | |
SCALAR_UNIT_HPP (volumetric_flow) | |
SCALAR_UNIT_HPP (diffusion_coefficient) | |
SCALAR_UNIT_HPP (compressibility) | |
SCALAR_UNIT_HPP (polarization_density) | |
SCALAR_UNIT_HPP (magnetic_permeability) | |
SCALAR_UNIT_HPP (magnetization) | |
SCALAR_UNIT_HPP (magnetic_flux) | |
VECTOR_UNIT_HPP (magnetic_flux_density) | |
VECTOR_UNIT_HPP (magnetic_moment) | |
SCALAR_UNIT_HPP (magnetic_reluctance) | |
VECTOR_UNIT_HPP (magnetic_vector_potential) | |
SCALAR_UNIT_HPP (magnetic_rigidity) | |
VECTOR_UNIT_HPP (magnetomotive_force) | |
SCALAR_UNIT_HPP (magnetic_susceptibility) | |
SCALAR_UNIT_HPP (optical_power) | |
SCALAR_UNIT_HPP (illuminance) | |
SCALAR_UNIT_HPP (luminous_flux) | |
SCALAR_UNIT_HPP (luminous_energy) | |
SCALAR_UNIT_HPP (luminous_exposure) | |
SCALAR_UNIT_HPP (luminous_efficacy) | |
SCALAR_UNIT_HPP (ionizing_radiation) | |
SCALAR_UNIT_HPP (absorbed_dose) | |
SCALAR_UNIT_HPP (energy) | |
SCALAR_UNIT_HPP (action) | |
SCALAR_UNIT_HPP (power) | |
SCALAR_UNIT_HPP (power_density) | |
SCALAR_UNIT_HPP (entropy) | |
SCALAR_UNIT_HPP (heat_capacity) | |
SCALAR_UNIT_HPP (heat_flux_density) | |
SCALAR_UNIT_HPP (thermal_conductivity) | |
SCALAR_UNIT_HPP (thermal_diffusivity) | |
SCALAR_UNIT_HPP (thermal_resistance) | |
SCALAR_UNIT_HPP (thermal_expansion_coefficient) | |
VECTOR_UNIT_HPP (temperature_gradient) | |
SCALAR_UNIT_HPP (energy_flux_density) | |
SCALAR_UNIT_HPP (fuel_efficiency) | |
SCALAR_UNIT_HPP (wavenumber) | |
SCALAR_UNIT_HPP (frequency) | |
SCALAR_UNIT_HPP (sound_power) | |
SCALAR_UNIT_CPP (radioactivity,"Bq") | |
VECTOR_UNIT_CPP (irradiance,"kg/s3") | |
VECTOR_UNIT_CPP (radiant_exposure,"kg/s2") | |
SCALAR_UNIT_CPP (radiant_intensity,"kg*m2/s3") | |
SCALAR_UNIT_CPP (radiance,"kg/s3") | |
SCALAR_UNIT_CPP (spectral_radiance,"kg/m*s3") | |
VECTOR_UNIT_CPP (radiant_flux,"kg*m2/s3") | |
VECTOR_UNIT_CPP (spectral_flux,"kg*m/s3") | |
SCALAR_UNIT_HPP (radioactivity) | |
VECTOR_UNIT_HPP (irradiance) | |
VECTOR_UNIT_HPP (radiant_exposure) | |
SCALAR_UNIT_HPP (radiant_intensity) | |
SCALAR_UNIT_HPP (radiance) | |
SCALAR_UNIT_HPP (spectral_radiance) | |
VECTOR_UNIT_HPP (radiant_flux) | |
VECTOR_UNIT_HPP (spectral_flux) | |
SCALAR_UNIT_CPP (area,"m2") | |
SCALAR_UNIT_CPP (volume,"m3") | |
SCALAR_UNIT_CPP (volume_4d,"m4") | |
SCALAR_UNIT_CPP (curvature,"1/m") | |
SCALAR_UNIT_HPP_BEGIN (area) | |
area (const size_2d< length > &) | |
SCALAR_UNIT_HPP_END () | |
SCALAR_UNIT_HPP_BEGIN (volume) | |
volume (const size_3d< length > &) | |
SCALAR_UNIT_HPP (volume_4d) | |
SCALAR_UNIT_HPP (curvature) | |
string | to_string (const pixel &x) |
bool | is_pixel (const string &init_pixel) |
pixel | sqrt (const pixel &x) |
pixel | sqrt_nth (const pixel &x, int index) |
string | to_string (const size_2d< float > &x) |
Returns a string representation of size_2d<float>. | |
template<typename T > | |
string | to_string (const size_2d< T > &x) |
Returns a string representation of size_2d<T>. | |
string | to_string (const size_3d< float > &x) |
Returns a string representation of size_3d<float>. | |
template<typename T > | |
string | to_string (const size_3d< T > &x) |
Returns a string representation of size_3d<T>. | |
string | to_string (const size_nd< float > &x) |
template<typename T > | |
string | to_string (const size_nd< T > &x) |
SCALAR_UNIT_CPP (length,"m") | |
SCALAR_UNIT_CPP (mass,"g") | |
SCALAR_UNIT_CPP (charge,"C") | |
SCALAR_UNIT_CPP (temperature,"K") | |
SCALAR_UNIT_CPP (mole,"mol") | |
SCALAR_UNIT_CPP (light_intensity,"cd") | |
SCALAR_UNIT_CPP (information_size,"B") | |
SCALAR_UNIT_HPP (length) | |
SCALAR_UNIT_HPP_BEGIN (mass) | |
mass (const percentage &new_percentage, const mass &new_mass) | |
mass (const string &init_percentage, const string &init_mass) | |
SCALAR_UNIT_HPP (charge) | |
SCALAR_UNIT_HPP (temperature) | |
SCALAR_UNIT_HPP_BEGIN (mole) | |
mole (const percentage &new_percentage, const mole &new_mole) | |
mole (const string &init_percentage, const string &init_mole) | |
int | get_number_of_particles () const |
SCALAR_UNIT_HPP (light_intensity) | |
SCALAR_UNIT_HPP (information_size) | |
float | fahrenheit_to_kelvin (float x) |
float | kelvin_to_fahrenheit (float x) |
string | to_string (const dimension &x) |
Creates the string representation of a dimension. | |
string | to_string (const vector< dimension > &x_dimensions, bool with_brackets) |
Creates the string representation of a vector of dimensions. Used to display the dimensions of scalar_unit and all vector_unit classes. The dimensions can be displayed optionally between brackets like '[]' too. | |
string | to_latex (const vector< dimension > &x_dimensions, bool with_brackets) |
vector< dimension > | create_dimensions (string init_dimensions) |
Creates the dimensions from an initialization string of dimensions. | |
vector< dimension > | create_base_dimensions (const string &init_dimensions) |
Creates the base dimensions from an initialization string of dimensions. | |
vector< dimension > | create_base_dimensions (const vector< dimension > &x) |
Creates all the base dimensions from a vector of dimensions. | |
vector< dimension > | create_base_dimensions (const vector< dimension > &x, long double &value) |
Creates all the base dimensions from a vector of dimensions, updating also the associated value related to those dimensions based on the prefix math and the conversion factor of the dimension, if that conversion factor is different than one. | |
vector< dimension > | multiply_dimensions (const vector< dimension > &x, const vector< dimension > &y) |
Multiplies two vectors of dimensions. The result is normalized after, which means that equal dimensions at the numerator and at the denominator are cancelled. | |
vector< dimension > | multiply_dimensions (vector< dimension > x, const vector< dimension > &y, long double &value) |
Multiplies two vectors of dimensions. The result is normalized after, which means that equal dimensions at the numerator and at the denominator are cancelled. It also updates the value associated with those two vectors of dimensions with the prefix m ath and the conversion factor of those dimensions. | |
vector< dimension > | divide_dimensions (vector< dimension > x, const vector< dimension > &y, long double &value) |
Divides the first vector of dimensions with the other. The result is normalized after, which means that equal dimensions at the numerator and at the denominator are cancelled. It also updates the value associated with those two vectors of dimensions with the prefix m ath and the conversion factor of those dimensions. | |
vector< dimension > | square_dimensions (vector< dimension > x, int index, long double &value) |
Squares a vector of dimensions by an index. The value is updated too related to the prefix math and the conversion factor of this operation. | |
vector< dimension > | power_dimensions (const vector< dimension > &x, int exponent) |
Powers the dimensions by an exponent. | |
vector< dimension > | normalize_dimensions (const vector< dimension > &x) |
Normalizes the dimensions, which means that repited dimensions at the numerator and at the denominator are cancelled. | |
vector< dimension > | normalize_dimensions (const vector< dimension > &x, long double &value) |
Normalizes the dimensions, which means that repited dimensions at the numerator and at the denominator are cancelled. The value is updated if there are dimensions cancelled. | |
bool | is_dimension_char (const UChar32 &x) |
bool | common_dimension (const dimension &x, const dimension &y) |
Checks if there's an equal basic dimension between the basic dimensions of those two dimensions. | |
bool | equal_dimensions (const string &init_dimensions_x, const string &init_dimensions_y) |
Checks if two initialization strings of dimensions initialize the same basic dimensions. | |
bool | equal_dimensions (const vector< dimension > &x, const vector< dimension > &y) |
bool | equal_dimensions_and_prefixes (const vector< dimension > &x, const vector< dimension > &y) |
Checks if the base dimensions of two vectors of dimensions are equal, and if they have also the same prefixes. | |
prefix::type | prefix_string (const string &x) |
Returns the value of the enum prefix::type associated with the string x given. | |
prefix | closest_prefix (const prefix &actual_prefix, int actual_scale) |
Returns the closes prefix related to the scale of the current value. It is used when displaying a scalar_unit to the most close prefix available. | |
prefix | create_prefix_by_factor (int factor) |
Creates the prefix of the factor given, which is always between a range. | |
string | to_string (const scalar_unit &x) |
Generates a string representation of the scalar_unit, it uses the display of the scalar_unit with 2 decimals, without brackets and without a close prefix. | |
bool | is_scalar_unit (const string &init_scalar) |
Checks if an string is an initialization string of a scalar_unit. | |
float | abs (const scalar_unit &x) |
Returns the absolute value of the scalar_unit, without dimensions. | |
scalar_unit | pow (const scalar_unit &x, int exponent) |
Exponentiates a scalar_unit to some numeric type, the dimensions are also exponentiated. | |
scalar_unit | sqrt (const scalar_unit &x) |
Square root of a scalar_unit, it squares the dimensions too. | |
scalar_unit | sqrt_nth (const scalar_unit &x, int index) |
Nth root of a scalar_unit to any numeric value, it squares the dimensions too. | |
scalar_unit | norm (const vector_unit_2d &x) |
It returns the value of the vector in polar coordinates, p. | |
vector_unit_2d | sqrt (const vector_unit_2d &x) |
It squares the vector, creating a vector_unit_2d with the value squared and always the same theta. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes. | |
vector_unit_2d | sqrt_nth (const vector_unit_2d &x, int index) |
It takes the root of the vector with the index given, creating a vector_unit_2d with the value rooted to that index and always maintains the same theta. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes. | |
scalar_unit | dot_product (const vector_unit_2d &x, const vector_unit_2d &y) |
Creates a scalar_unit as the dot product of the two vectors x and y. | |
angle | angle_between (const vector_unit_2d &x, const vector_unit_2d &y) |
Returns the angle between two vectors x and y inside a 2D space. | |
bool | same_direction (const vector_unit_2d &x, const vector_unit_2d &y) |
Checks if two vectors x and y have the same direction. | |
bool | parallel (const vector_unit_2d &x, const vector_unit_2d &y) |
Checks if two vectors x and y are parallel, which means that their direction is the same or the exact opposite. | |
bool | orthogonal (const vector_unit_2d &x, const vector_unit_2d &y) |
Checks if two vectors x and y are orthogonal, that's, if they have 90 degrees of difference. | |
string | to_string (const vector_unit_2d &x) |
It generates a string representation of vector_unit_2d. | |
scalar_unit | norm (const vector_unit_3d &x) |
It returns the value of the vector in spherical coordinates, r. | |
vector_unit_3d | sqrt (const vector_unit_3d &x) |
It squares the vector, creating a vector_unit_3d with the value squared and always the same theta and the same phi. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes. | |
vector_unit_3d | sqrt_nth (const vector_unit_3d &x, int index) |
It takes the root of the vector with the index given, creating a vector_unit_3d with the value rooted to that index and always maintains the same theta and the same phi. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes. | |
scalar_unit | dot_product (const vector_unit_3d &x, const vector_unit_3d &y) |
Creates a scalar_unit as the dot product of the two vectors x and y. | |
vector_unit_3d | cross_product (const vector_unit_3d &x, const vector_unit_3d &y) |
Creates a vector_unit_3d as the cross product of the two vectors x and y. | |
angle | angle_between (const vector_unit_3d &x, const vector_unit_3d &y) |
Returns the angle between two vectors x and y inside a 3D space. | |
bool | same_direction (const vector_unit_3d &x, const vector_unit_3d &y) |
Checks if two vectors x and y have the same direction. | |
bool | parallel (const vector_unit_3d &x, const vector_unit_3d &y) |
Checks if two vectors x and y are parallel, which means that their direction is the same or the exact opposite. | |
bool | orthogonal (const vector_unit_3d &x, const vector_unit_3d &y) |
Checks if two vectors x and y are orthogonal, that's, if they have 90 degrees between them. | |
string | to_string (const vector_unit_3d &x) |
It generates a string representation of vector_unit_3d. | |
string | to_string (const vector_unit_nd &x) |
It generates a string representation of vector_unit_nd. | |
scalar_unit | norm (const vector_unit_nd &x) |
It returns the value of the vector, which is the value in 1D, p in 2D (polar coordinates), or r in 3D (spherical coordinates). | |
vector_unit_nd | sqrt (const vector_unit_nd &x) |
It squares the vector, creating a vector_unit_nd with the value squared and always the same angles. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes. | |
vector_unit_nd | sqrt_nth (const vector_unit_nd &x, int index) |
It takes the root of the vector with the index given, creating a vector_unit_nd with the value rooted to that index and always maintains the same angles. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes. | |
scalar_unit | dot_product (const vector_unit_nd &x, const vector_unit_nd &y) |
Creates a scalar_unit as the dot product of the two vectors x and y. | |
vector_unit_nd | cross_product (const vector_unit_nd &x, const vector_unit_nd &y) |
Creates a vector_unit_nd as the cross product of the two vectors x and y. If both vectors aren't in 3D, it returns an empty vector_unit_nd, because the cross product doesn't exists outside 3D. | |
angle | angle_between (const vector_unit_nd &x, const vector_unit_nd &y) |
Returns the angle between two vectors x and y inside the ND space, which can be 2D or 3D, depending on the ND of the vectors. If the vectors have different ND, it returns an empty vector_unit_nd instead. | |
bool | same_nd (const vector_unit_nd &x, const vector_unit_nd &y) |
Checks if two vectors have the same number of dimensions. | |
bool | same_direction (const vector_unit_nd &x, const vector_unit_nd &y) |
Checks if two vectors x and y have the same direction. Both vectors must have the same ND, otherwise it returns an empty vector_unit_nd instead. | |
bool | parallel (const vector_unit_nd &x, const vector_unit_nd &y) |
Checks if two vectors x and y are parallel, which means that their direction is the same or the exact opposite. Both vectors must have the same ND, otherwise it returns an empty vector_unit_nd instead. | |
bool | orthogonal (const vector_unit_nd &x, const vector_unit_nd &y) |
Checks if two vectors x and y are orthogonal, that's, if they have 90 degrees between them. Both vectors must have the same ND, otherwise it returns an empty vector_unit_nd instead. | |
float | parse_float (const string &x) |
int | parse_int (const string &x) |
string | display_float (const float &value, int number_of_decimals) |
string | display_double (const double &value, int number_of_decimals) |
string | display_long_double (const long double &value, int number_of_decimals) |
Variables | |
angle | coordinates_ndr_no_angle = angle() |
const scalar_unit | WGS84_EARTH_SEMIAXIS_A = 6378137_m |
const scalar_unit | WGS84_EARTH_SEMIAXIS_B = 6356752.314245_m |
const long double | HYPERFINE_TRANSITION_FREQUENCY_OF_CS = 9192631770.0l |
const long double | SPEED_OF_LIGHT = 299792458.0l |
const long double | PLANCK_CONSTANT = 6.62607015e-34 |
const long double | ELEMENTARY_CHARGE = 1.602176634e-19 |
const long double | BOLTZMANN_CONSTANT = 1.380649e-23 |
const long double | AVOGADRO_CONSTANT = 6.02214076e23 |
const long double | LUMINOUS_EFFICACY_OF_540_THZ_RADIATION = 683.0l |
const long double | GRAVITATIONAL_CONSTANT = 6.6743e-11 |
const long double | MOLAR_GAS_CONSTANT = 8.31446261815324l |
const long double | ATOMIC_MASS_CONSTANT = 1.66053906660e-27 |
const long double | COULOMB_CONSTANT = 8.9875517873681764e9 |
const long double | VACUUM_PERMITTIVITY = 8.8541878188e-12 |
const long double | RYDBERG_CONSTANT = 1.0973731568539e7 |
const long double | FARADAY_CONSTANT = 9.64853321233100184e4 |
The namespace scifir contains all scifir-units, excepting the string literals, which are outside.
Definition at line 97 of file physics_units.hpp.
|
strong |
Contains predefined astronomical bodies to be set automatically in the aid class. All of them are important astronomical bodies, unimportant astronomical bodies aren't included.
Definition at line 11 of file aid.hpp.
|
strong |
Definition at line 186 of file complex_number.hpp.
float scifir::abs | ( | const scalar_unit & | x | ) |
Returns the absolute value of the scalar_unit, without dimensions.
Definition at line 937 of file scalar_unit.cpp.
Calculates the acos of some value x and returns the result as angle in degrees.
Definition at line 446 of file angle.cpp.
Calculates the acos receiving x in degrees. It uses the acos() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians.
Calculates the acosh of some value x and returns the result as angle in degrees.
Calculates the acosh receiving x in degrees. It uses the acosh() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians.
angle scifir::angle_between | ( | const vector_unit_2d & | x, |
const vector_unit_2d & | y | ||
) |
Returns the angle between two vectors x and y inside a 2D space.
Definition at line 369 of file vector_unit_2d.cpp.
angle scifir::angle_between | ( | const vector_unit_3d & | x, |
const vector_unit_3d & | y | ||
) |
Returns the angle between two vectors x and y inside a 3D space.
Definition at line 496 of file vector_unit_3d.cpp.
angle scifir::angle_between | ( | const vector_unit_nd & | x, |
const vector_unit_nd & | y | ||
) |
Returns the angle between two vectors x and y inside the ND space, which can be 2D or 3D, depending on the ND of the vectors. If the vectors have different ND, it returns an empty vector_unit_nd instead.
Definition at line 843 of file vector_unit_nd.cpp.
Definition at line 13 of file space_units.cpp.
Calculates the asin of some value x and returns the result as angle in degrees.
Calculates the asin receiving x in degrees. It uses the asin() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians.
Calculates the asinh of some value x and returns the result as angle in degrees.
Calculates the asinh receiving x in degrees. It uses the asinh() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians.
Calculates the atan of some value x and returns the result as angle in degrees.
Calculates the atan receiving x in degrees. It uses the atan() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians.
Calculates the atanh of some value x and returns the result as angle in degrees.
Calculates the atanh receiving x in degrees. It uses the atanh() function of the standard library of C++, but the difference is that the argument is in degrees, not in radians.
|
inline |
Definition at line 354 of file coordinates_2d.hpp.
Definition at line 376 of file coordinates_2d.hpp.
|
inline |
Definition at line 360 of file coordinates_2d.hpp.
Definition at line 381 of file coordinates_2d.hpp.
|
inline |
Returns the p coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 726 of file coordinates_3d.hpp.
Returns the p coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 825 of file coordinates_3d.hpp.
|
inline |
Returns the theta coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 732 of file coordinates_3d.hpp.
Returns the theta coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 830 of file coordinates_3d.hpp.
|
inline |
Returns the z coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 738 of file coordinates_3d.hpp.
Returns the z coordinate of the cylindrical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 835 of file coordinates_3d.hpp.
|
inline |
Returns the phi coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 756 of file coordinates_3d.hpp.
Returns the phi coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 850 of file coordinates_3d.hpp.
|
inline |
Returns the r coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 743 of file coordinates_3d.hpp.
Returns the r coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 840 of file coordinates_3d.hpp.
|
inline |
Returns the theta coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 750 of file coordinates_3d.hpp.
Returns the theta coordinate of the spherical coordinates given the x, y and z of cartesian coordinates in 3D.
Definition at line 845 of file coordinates_3d.hpp.
Returns the closes prefix related to the scale of the current value. It is used when displaying a scalar_unit to the most close prefix available.
Definition at line 323 of file prefix.cpp.
Checks if there's an equal basic dimension between the basic dimensions of those two dimensions.
Definition at line 2340 of file dimension.cpp.
Calculates the cos of angle x. It uses the cos() function of the standard library of C++, the difference is that angle is in degrees, not in radians.
Calculates the cosh of angle x. It uses the cosh() function of the standard library of C++, the difference is that angle is in degrees, not in radians.
Creates an instance of an aid::type with the given string, which is the reverse as the to_string() function of aid::type.
Definition at line 613 of file aid.cpp.
Creates the base dimensions from an initialization string of dimensions.
Definition at line 2033 of file dimension.cpp.
Creates all the base dimensions from a vector of dimensions.
Definition at line 2039 of file dimension.cpp.
vector< dimension > scifir::create_base_dimensions | ( | const vector< dimension > & | x, |
long double & | value | ||
) |
Creates all the base dimensions from a vector of dimensions, updating also the associated value related to those dimensions based on the prefix math and the conversion factor of the dimension, if that conversion factor is different than one.
Definition at line 2057 of file dimension.cpp.
cardinale_point scifir::create_cardinale_point | ( | const string & | x | ) |
Definition at line 28 of file coordinates_3d.cpp.
Creates the dimensions from an initialization string of dimensions.
Definition at line 1921 of file dimension.cpp.
direction::name scifir::create_direction | ( | const string & | x | ) |
Definition at line 55 of file direction.cpp.
Creates the prefix of the factor given, which is always between a range.
Definition at line 330 of file prefix.cpp.
Creates an instance of a zid::type with the given string, which is the reverse as the to_string() function of zid::type.
Definition at line 311 of file zid.cpp.
vector_unit_3d scifir::cross_product | ( | const vector_unit_3d & | x, |
const vector_unit_3d & | y | ||
) |
Creates a vector_unit_3d as the cross product of the two vectors x and y.
Definition at line 474 of file vector_unit_3d.cpp.
vector_unit_nd scifir::cross_product | ( | const vector_unit_nd & | x, |
const vector_unit_nd & | y | ||
) |
Creates a vector_unit_nd as the cross product of the two vectors x and y. If both vectors aren't in 3D, it returns an empty vector_unit_nd, because the cross product doesn't exists outside 3D.
Definition at line 810 of file vector_unit_nd.cpp.
|
inline |
Returns the x coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates.
Definition at line 793 of file coordinates_3d.hpp.
Returns the x coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates.
Definition at line 885 of file coordinates_3d.hpp.
|
inline |
Returns the y coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates.
Definition at line 798 of file coordinates_3d.hpp.
Returns the y coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates.
Definition at line 890 of file coordinates_3d.hpp.
|
inline |
Returns the z coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates.
Definition at line 803 of file coordinates_3d.hpp.
Returns the z coordinate of the cartesian coordinates in 3D given the p, theta and z of cylindrical coordinates.
Definition at line 895 of file coordinates_3d.hpp.
|
inline |
Returns the phi coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates.
Definition at line 819 of file coordinates_3d.hpp.
Returns the phi coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates.
Definition at line 910 of file coordinates_3d.hpp.
|
inline |
Returns the r coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates.
Definition at line 808 of file coordinates_3d.hpp.
Returns the r coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates.
Definition at line 900 of file coordinates_3d.hpp.
|
inline |
Returns the theta coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates.
Definition at line 814 of file coordinates_3d.hpp.
Returns the theta coordinate of the spherical coordinates given the p, theta and z of cylindrical coordinates.
Definition at line 905 of file coordinates_3d.hpp.
Definition at line 78 of file types.cpp.
float scifir::distance | ( | const coordinates_1d< float > & | x, |
const coordinates_1d< float > & | y | ||
) |
Definition at line 13 of file coordinates_1d.cpp.
T scifir::distance | ( | const coordinates_1d< T > & | x, |
const coordinates_1d< U > & | y | ||
) |
Definition at line 191 of file coordinates_1d.hpp.
float scifir::distance | ( | const coordinates_2d< float > & | x, |
const coordinates_2d< float > & | y | ||
) |
Definition at line 14 of file coordinates_2d.cpp.
float scifir::distance | ( | const coordinates_2d< float > & | x, |
const coordinates_2dr< float > & | y | ||
) |
Definition at line 22 of file coordinates_2dr.cpp.
T scifir::distance | ( | const coordinates_2d< T > & | x, |
const coordinates_2d< U > & | y | ||
) |
Definition at line 347 of file coordinates_2d.hpp.
T scifir::distance | ( | const coordinates_2d< T > & | x, |
const coordinates_2dr< U > & | y | ||
) |
Definition at line 480 of file coordinates_2dr.hpp.
float scifir::distance | ( | const coordinates_2dr< float > & | x, |
const coordinates_2d< float > & | y | ||
) |
float scifir::distance | ( | const coordinates_2dr< float > & | x, |
const coordinates_2dr< float > & | y | ||
) |
T scifir::distance | ( | const coordinates_2dr< T > & | x, |
const coordinates_2d< U > & | y | ||
) |
Definition at line 472 of file coordinates_2dr.hpp.
T scifir::distance | ( | const coordinates_2dr< T > & | x, |
const coordinates_2dr< U > & | y | ||
) |
Definition at line 464 of file coordinates_2dr.hpp.
float scifir::distance | ( | const coordinates_3d< float > & | x, |
const coordinates_3d< float > & | y | ||
) |
Calculates the distance between two coordinates_3d<float>.
Definition at line 49 of file coordinates_3d.cpp.
float scifir::distance | ( | const coordinates_3d< float > & | x, |
const coordinates_3dr< float > & | y | ||
) |
Definition at line 22 of file coordinates_3dr.cpp.
T scifir::distance | ( | const coordinates_3d< T > & | x, |
const coordinates_3d< U > & | y | ||
) |
Calculates the distance between two coordinates_3d.
Definition at line 719 of file coordinates_3d.hpp.
T scifir::distance | ( | const coordinates_3d< T > & | x, |
const coordinates_3dr< U > & | y | ||
) |
Definition at line 924 of file coordinates_3dr.hpp.
float scifir::distance | ( | const coordinates_3dr< float > & | x, |
const coordinates_3d< float > & | y | ||
) |
float scifir::distance | ( | const coordinates_3dr< float > & | x, |
const coordinates_3dr< float > & | y | ||
) |
T scifir::distance | ( | const coordinates_3dr< T > & | x, |
const coordinates_3d< U > & | y | ||
) |
Definition at line 916 of file coordinates_3dr.hpp.
T scifir::distance | ( | const coordinates_3dr< T > & | x, |
const coordinates_3dr< U > & | y | ||
) |
Definition at line 908 of file coordinates_3dr.hpp.
float scifir::distance | ( | const coordinates_nd< float > & | x, |
const coordinates_nd< float > & | y | ||
) |
Definition at line 30 of file coordinates_nd.cpp.
float scifir::distance | ( | const coordinates_nd< float > & | x, |
const coordinates_ndr< float > & | y | ||
) |
Definition at line 82 of file coordinates_ndr.cpp.
T scifir::distance | ( | const coordinates_nd< T > & | x, |
const coordinates_nd< U > & | y | ||
) |
Definition at line 1160 of file coordinates_nd.hpp.
T scifir::distance | ( | const coordinates_nd< T > & | x, |
const coordinates_ndr< U > & | y | ||
) |
Definition at line 2231 of file coordinates_ndr.hpp.
float scifir::distance | ( | const coordinates_ndr< float > & | x, |
const coordinates_nd< float > & | y | ||
) |
Definition at line 65 of file coordinates_ndr.cpp.
float scifir::distance | ( | const coordinates_ndr< float > & | x, |
const coordinates_ndr< float > & | y | ||
) |
Definition at line 48 of file coordinates_ndr.cpp.
T scifir::distance | ( | const coordinates_ndr< T > & | x, |
const coordinates_nd< U > & | y | ||
) |
Definition at line 2211 of file coordinates_ndr.hpp.
T scifir::distance | ( | const coordinates_ndr< T > & | x, |
const coordinates_ndr< U > & | y | ||
) |
Definition at line 2191 of file coordinates_ndr.hpp.
vector< dimension > scifir::divide_dimensions | ( | vector< dimension > | x, |
const vector< dimension > & | y, | ||
long double & | value | ||
) |
Divides the first vector of dimensions with the other. The result is normalized after, which means that equal dimensions at the numerator and at the denominator are cancelled. It also updates the value associated with those two vectors of dimensions with the prefix m ath and the conversion factor of those dimensions.
Definition at line 2108 of file dimension.cpp.
scalar_unit scifir::dot_product | ( | const vector_unit_2d & | x, |
const vector_unit_2d & | y | ||
) |
Creates a scalar_unit as the dot product of the two vectors x and y.
Definition at line 362 of file vector_unit_2d.cpp.
scalar_unit scifir::dot_product | ( | const vector_unit_3d & | x, |
const vector_unit_3d & | y | ||
) |
Creates a scalar_unit as the dot product of the two vectors x and y.
Definition at line 467 of file vector_unit_3d.cpp.
scalar_unit scifir::dot_product | ( | const vector_unit_nd & | x, |
const vector_unit_nd & | y | ||
) |
Creates a scalar_unit as the dot product of the two vectors x and y.
Definition at line 803 of file vector_unit_nd.cpp.
|
inline |
Definition at line 45 of file coordinates_3d.hpp.
Definition at line 110 of file coordinates_3d.hpp.
|
inline |
Definition at line 22 of file coordinates_3d.hpp.
Definition at line 87 of file coordinates_3d.hpp.
|
inline |
Definition at line 40 of file coordinates_3d.hpp.
Definition at line 105 of file coordinates_3d.hpp.
bool scifir::equal_dimensions | ( | const string & | init_dimensions_x, |
const string & | init_dimensions_y | ||
) |
Checks if two initialization strings of dimensions initialize the same basic dimensions.
Definition at line 2355 of file dimension.cpp.
brief Checks if the base dimensions of two vectors of dimensions are equal.
Definition at line 2362 of file dimension.cpp.
bool scifir::equal_dimensions_and_prefixes | ( | const vector< dimension > & | x, |
const vector< dimension > & | y | ||
) |
Checks if the base dimensions of two vectors of dimensions are equal, and if they have also the same prefixes.
Definition at line 2413 of file dimension.cpp.
Definition at line 37 of file conversion.hpp.
int scifir::mole::get_number_of_particles | ( | ) | const |
Definition at line 399 of file base_units.cpp.
direction::name scifir::invert | ( | direction::name | x | ) |
Definition at line 167 of file direction.cpp.
Checks if some string is an initialization string of an angle.
Definition at line 336 of file angle.cpp.
Definition at line 7 of file complex_number.cpp.
Definition at line 7 of file lab_number.cpp.
Definition at line 199 of file latitude.cpp.
Definition at line 195 of file longitude.cpp.
Checks if a string is an initialization string of percentage.
Definition at line 488 of file percentage.cpp.
Definition at line 201 of file pixel.cpp.
Checks if an string is an initialization string of a scalar_unit.
init_scalar | string to check. It must be an initialization string of a scalar_unit to return true. |
Definition at line 745 of file scalar_unit.cpp.
Definition at line 42 of file conversion.hpp.
|
inline |
Definition at line 63 of file coordinates_3d.hpp.
|
inline |
Definition at line 71 of file coordinates_3d.hpp.
|
inline |
Definition at line 79 of file coordinates_3d.hpp.
scifir::mass::mass | ( | const percentage & | new_percentage, |
const mass & | new_mass | ||
) |
Definition at line 369 of file base_units.cpp.
Definition at line 375 of file base_units.cpp.
scifir::mole::mole | ( | const percentage & | new_percentage, |
const mole & | new_mole | ||
) |
Definition at line 386 of file base_units.cpp.
Definition at line 392 of file base_units.cpp.
vector< dimension > scifir::multiply_dimensions | ( | const vector< dimension > & | x, |
const vector< dimension > & | y | ||
) |
Multiplies two vectors of dimensions. The result is normalized after, which means that equal dimensions at the numerator and at the denominator are cancelled.
Definition at line 2089 of file dimension.cpp.
vector< dimension > scifir::multiply_dimensions | ( | vector< dimension > | x, |
const vector< dimension > & | y, | ||
long double & | value | ||
) |
Multiplies two vectors of dimensions. The result is normalized after, which means that equal dimensions at the numerator and at the denominator are cancelled. It also updates the value associated with those two vectors of dimensions with the prefix m ath and the conversion factor of those dimensions.
Definition at line 2099 of file dimension.cpp.
scalar_unit scifir::norm | ( | const vector_unit_2d & | x | ) |
It returns the value of the vector in polar coordinates, p.
Definition at line 345 of file vector_unit_2d.cpp.
scalar_unit scifir::norm | ( | const vector_unit_3d & | x | ) |
It returns the value of the vector in spherical coordinates, r.
Definition at line 450 of file vector_unit_3d.cpp.
scalar_unit scifir::norm | ( | const vector_unit_nd & | x | ) |
It returns the value of the vector, which is the value in 1D, p in 2D (polar coordinates), or r in 3D (spherical coordinates).
Definition at line 786 of file vector_unit_nd.cpp.
Normalizes the dimensions, which means that repited dimensions at the numerator and at the denominator are cancelled.
Definition at line 2203 of file dimension.cpp.
vector< dimension > scifir::normalize_dimensions | ( | const vector< dimension > & | x, |
long double & | value | ||
) |
Normalizes the dimensions, which means that repited dimensions at the numerator and at the denominator are cancelled. The value is updated if there are dimensions cancelled.
Definition at line 2259 of file dimension.cpp.
bool scifir::orthogonal | ( | const vector_unit_2d & | x, |
const vector_unit_2d & | y | ||
) |
Checks if two vectors x and y are orthogonal, that's, if they have 90 degrees of difference.
Definition at line 384 of file vector_unit_2d.cpp.
bool scifir::orthogonal | ( | const vector_unit_3d & | x, |
const vector_unit_3d & | y | ||
) |
Checks if two vectors x and y are orthogonal, that's, if they have 90 degrees between them.
Definition at line 525 of file vector_unit_3d.cpp.
bool scifir::orthogonal | ( | const vector_unit_nd & | x, |
const vector_unit_nd & | y | ||
) |
Checks if two vectors x and y are orthogonal, that's, if they have 90 degrees between them. Both vectors must have the same ND, otherwise it returns an empty vector_unit_nd instead.
Definition at line 903 of file vector_unit_nd.cpp.
bool scifir::parallel | ( | const vector_unit_2d & | x, |
const vector_unit_2d & | y | ||
) |
Checks if two vectors x and y are parallel, which means that their direction is the same or the exact opposite.
Definition at line 379 of file vector_unit_2d.cpp.
bool scifir::parallel | ( | const vector_unit_3d & | x, |
const vector_unit_3d & | y | ||
) |
Checks if two vectors x and y are parallel, which means that their direction is the same or the exact opposite.
Definition at line 513 of file vector_unit_3d.cpp.
bool scifir::parallel | ( | const vector_unit_nd & | x, |
const vector_unit_nd & | y | ||
) |
Checks if two vectors x and y are parallel, which means that their direction is the same or the exact opposite. Both vectors must have the same ND, otherwise it returns an empty vector_unit_nd instead.
Definition at line 876 of file vector_unit_nd.cpp.
|
inline |
Definition at line 366 of file coordinates_2d.hpp.
Definition at line 386 of file coordinates_2d.hpp.
|
inline |
Definition at line 371 of file coordinates_2d.hpp.
Definition at line 391 of file coordinates_2d.hpp.
scalar_unit scifir::pow | ( | const scalar_unit & | x, |
int | exponent | ||
) |
Exponentiates a scalar_unit to some numeric type, the dimensions are also exponentiated.
Definition at line 942 of file scalar_unit.cpp.
Powers the dimensions by an exponent.
Definition at line 2190 of file dimension.cpp.
prefix::type scifir::prefix_string | ( | const string & | x | ) |
Returns the value of the enum prefix::type associated with the string x given.
Definition at line 215 of file prefix.cpp.
bool scifir::same_direction | ( | const vector_unit_2d & | x, |
const vector_unit_2d & | y | ||
) |
Checks if two vectors x and y have the same direction.
Definition at line 374 of file vector_unit_2d.cpp.
bool scifir::same_direction | ( | const vector_unit_3d & | x, |
const vector_unit_3d & | y | ||
) |
bool scifir::same_direction | ( | const vector_unit_nd & | x, |
const vector_unit_nd & | y | ||
) |
Checks if two vectors x and y have the same direction. Both vectors must have the same ND, otherwise it returns an empty vector_unit_nd instead.
Definition at line 860 of file vector_unit_nd.cpp.
bool scifir::same_nd | ( | const vector_unit_nd & | x, |
const vector_unit_nd & | y | ||
) |
Checks if two vectors have the same number of dimensions.
Definition at line 848 of file vector_unit_nd.cpp.
scifir::SCALAR_UNIT_CPP | ( | absorbed_dose | , |
"Gy/s" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | amount_of_effect | , |
"IU" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | area | , |
"m2" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | area_density | , |
"g/m2" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | brain_memory | , |
"memo" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | capacitance | , |
"F" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | catalytic_activity | , |
"kat" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | catalytic_efficiency | , |
"m3/s*mol" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | charge | , |
"C" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | compressibility | , |
"m*s2/kg" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | curvature | , |
"1/m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | diffusion_coefficient | , |
"m2/s" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | dynamic_viscosity | , |
"g/m*s" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | electric_charge_density | , |
"C/m3" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | electric_conductance | , |
"S" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | electric_current | , |
"A" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | electric_current_density | , |
"A/m2" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | electrical_conductivity | , |
"S/m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | electron_mobility | , |
"m2/V*s" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | energy | , |
"J" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | energy_density | , |
"g/m*s2" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | energy_flux_density | , |
"kg/s3" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | frequency | , |
"Hz" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | frequency_drift | , |
"1/s2" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | fuel_efficiency | , |
"1/m2" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | heat_capacity | , |
"J/K" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | heat_flux_density | , |
"kg/s3" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | illuminance | , |
"lx" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | inductance | , |
"H" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | information_size | , |
"B" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | ionizing_radiation | , |
"Gy" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | length | , |
"m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | light_intensity | , |
"cd" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | linear_charge_density | , |
"C/m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | linear_mass_density | , |
"g/m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | luminous_efficacy | , |
"lm/W" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | luminous_energy | , |
"lm*s" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | luminous_exposure | , |
"lx*s" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | luminous_flux | , |
"lm" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | magnetic_flux | , |
"Wb" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | magnetic_permeability | , |
"H/m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | magnetic_reluctance | , |
"1/H" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | magnetic_rigidity | , |
"T*m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | magnetic_susceptibility | , |
"m/H" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | magnetization | , |
"A/m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | mass | , |
"g" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | mass_flow_rate | , |
"g/s" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | molar_conductivity | , |
"s3*A2/g*mol" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | molar_energy | , |
"m2*g/s2*mol" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | molar_enthalpy | , |
"m2*g/s2*mol" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | molar_entropy | , |
"m2*g/s2*K*mol" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | molar_heat_capacity | , |
"m2*g/s2*K*mol" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | molar_mass | , |
"g/mol" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | molar_volume | , |
"m3/mol" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | molarity | , |
"M" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | mole | , |
"mol" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | moment_of_inertia | , |
"m2*kg" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | optical_power | , |
"1/m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | permittivity | , |
"F/m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | polarization_density | , |
"C/m2" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | power | , |
"W" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | power_density | , |
"kg/m*s3" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | radiant_intensity | , |
"kg*m2/s3" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | radioactivity | , |
"Bq" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | resistance | , |
"Ω" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | resistivity | , |
"Ω*m" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | sound_power | , |
"dB" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | specific_energy | , |
"m2/s2" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | specific_entropy | , |
"m2/s2*K" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | specific_heat_capacity | , |
"J/K*kg" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | specific_volume | , |
"m3/g" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | spectral_radiance | , |
"kg/m*s3" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | surface_charge_density | , |
"C/m2" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | temperature | , |
"K" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | thermal_conductivity | , |
"W/m*K" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | thermal_diffusivity | , |
"m2/s" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | thermal_expansion_coefficient | , |
"1/K" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | thermal_resistance | , |
"K/W" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | transfer_speed | , |
"B/s" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | voltage | , |
"V" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | volume | , |
"m3" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | volume_4d | , |
"m4" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | volume_charge_density | , |
"C/m3" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | volumetric_flow | , |
"m3/s" | |||
) |
scifir::SCALAR_UNIT_CPP | ( | wavenumber | , |
"1/m" | |||
) |
scifir::SCALAR_UNIT_HPP | ( | absorbed_dose | ) |
scifir::SCALAR_UNIT_HPP | ( | action | ) |
scifir::SCALAR_UNIT_HPP | ( | amount_of_effect | ) |
scifir::SCALAR_UNIT_HPP | ( | area_density | ) |
scifir::SCALAR_UNIT_HPP | ( | brain_memory | ) |
scifir::SCALAR_UNIT_HPP | ( | capacitance | ) |
scifir::SCALAR_UNIT_HPP | ( | catalytic_activity | ) |
scifir::SCALAR_UNIT_HPP | ( | catalytic_efficiency | ) |
scifir::SCALAR_UNIT_HPP | ( | charge | ) |
scifir::SCALAR_UNIT_HPP | ( | compressibility | ) |
scifir::SCALAR_UNIT_HPP | ( | curvature | ) |
scifir::SCALAR_UNIT_HPP | ( | density | ) |
scifir::SCALAR_UNIT_HPP | ( | diffusion_coefficient | ) |
scifir::SCALAR_UNIT_HPP | ( | dynamic_viscosity | ) |
scifir::SCALAR_UNIT_HPP | ( | electric_charge_density | ) |
scifir::SCALAR_UNIT_HPP | ( | electric_conductance | ) |
scifir::SCALAR_UNIT_HPP | ( | electric_current | ) |
scifir::SCALAR_UNIT_HPP | ( | electric_current_density | ) |
scifir::SCALAR_UNIT_HPP | ( | electrical_conductivity | ) |
scifir::SCALAR_UNIT_HPP | ( | electron_mobility | ) |
scifir::SCALAR_UNIT_HPP | ( | energy | ) |
scifir::SCALAR_UNIT_HPP | ( | energy_density | ) |
scifir::SCALAR_UNIT_HPP | ( | energy_flux_density | ) |
scifir::SCALAR_UNIT_HPP | ( | entropy | ) |
scifir::SCALAR_UNIT_HPP | ( | frequency | ) |
scifir::SCALAR_UNIT_HPP | ( | frequency_drift | ) |
scifir::SCALAR_UNIT_HPP | ( | fuel_efficiency | ) |
scifir::SCALAR_UNIT_HPP | ( | heat_capacity | ) |
scifir::SCALAR_UNIT_HPP | ( | heat_flux_density | ) |
scifir::SCALAR_UNIT_HPP | ( | illuminance | ) |
scifir::SCALAR_UNIT_HPP | ( | inductance | ) |
scifir::SCALAR_UNIT_HPP | ( | information_size | ) |
scifir::SCALAR_UNIT_HPP | ( | ionizing_radiation | ) |
scifir::SCALAR_UNIT_HPP | ( | length | ) |
scifir::SCALAR_UNIT_HPP | ( | light_intensity | ) |
scifir::SCALAR_UNIT_HPP | ( | linear_charge_density | ) |
scifir::SCALAR_UNIT_HPP | ( | linear_mass_density | ) |
scifir::SCALAR_UNIT_HPP | ( | luminous_efficacy | ) |
scifir::SCALAR_UNIT_HPP | ( | luminous_energy | ) |
scifir::SCALAR_UNIT_HPP | ( | luminous_exposure | ) |
scifir::SCALAR_UNIT_HPP | ( | luminous_flux | ) |
scifir::SCALAR_UNIT_HPP | ( | magnetic_flux | ) |
scifir::SCALAR_UNIT_HPP | ( | magnetic_permeability | ) |
scifir::SCALAR_UNIT_HPP | ( | magnetic_reluctance | ) |
scifir::SCALAR_UNIT_HPP | ( | magnetic_rigidity | ) |
scifir::SCALAR_UNIT_HPP | ( | magnetic_susceptibility | ) |
scifir::SCALAR_UNIT_HPP | ( | magnetization | ) |
scifir::SCALAR_UNIT_HPP | ( | mass_flow_rate | ) |
scifir::SCALAR_UNIT_HPP | ( | molality | ) |
scifir::SCALAR_UNIT_HPP | ( | molar_conductivity | ) |
scifir::SCALAR_UNIT_HPP | ( | molar_energy | ) |
scifir::SCALAR_UNIT_HPP | ( | molar_enthalpy | ) |
scifir::SCALAR_UNIT_HPP | ( | molar_entropy | ) |
scifir::SCALAR_UNIT_HPP | ( | molar_heat_capacity | ) |
scifir::SCALAR_UNIT_HPP | ( | molar_mass | ) |
scifir::SCALAR_UNIT_HPP | ( | molar_volume | ) |
scifir::SCALAR_UNIT_HPP | ( | molarity | ) |
scifir::SCALAR_UNIT_HPP | ( | moment_of_inertia | ) |
scifir::SCALAR_UNIT_HPP | ( | optical_power | ) |
scifir::SCALAR_UNIT_HPP | ( | permittivity | ) |
scifir::SCALAR_UNIT_HPP | ( | polarization_density | ) |
scifir::SCALAR_UNIT_HPP | ( | power | ) |
scifir::SCALAR_UNIT_HPP | ( | power_density | ) |
scifir::SCALAR_UNIT_HPP | ( | radiance | ) |
scifir::SCALAR_UNIT_HPP | ( | radiant_intensity | ) |
scifir::SCALAR_UNIT_HPP | ( | radioactivity | ) |
scifir::SCALAR_UNIT_HPP | ( | resistance | ) |
scifir::SCALAR_UNIT_HPP | ( | resistivity | ) |
scifir::SCALAR_UNIT_HPP | ( | sound_power | ) |
scifir::SCALAR_UNIT_HPP | ( | specific_energy | ) |
scifir::SCALAR_UNIT_HPP | ( | specific_entropy | ) |
scifir::SCALAR_UNIT_HPP | ( | specific_heat_capacity | ) |
scifir::SCALAR_UNIT_HPP | ( | specific_volume | ) |
scifir::SCALAR_UNIT_HPP | ( | spectral_radiance | ) |
scifir::SCALAR_UNIT_HPP | ( | stiffness | ) |
scifir::SCALAR_UNIT_HPP | ( | surface_charge_density | ) |
scifir::SCALAR_UNIT_HPP | ( | temperature | ) |
scifir::SCALAR_UNIT_HPP | ( | thermal_conductivity | ) |
scifir::SCALAR_UNIT_HPP | ( | thermal_diffusivity | ) |
scifir::SCALAR_UNIT_HPP | ( | thermal_expansion_coefficient | ) |
scifir::SCALAR_UNIT_HPP | ( | thermal_resistance | ) |
scifir::SCALAR_UNIT_HPP | ( | transfer_speed | ) |
scifir::SCALAR_UNIT_HPP | ( | viscosity | ) |
scifir::SCALAR_UNIT_HPP | ( | voltage | ) |
scifir::SCALAR_UNIT_HPP | ( | volume_4d | ) |
scifir::SCALAR_UNIT_HPP | ( | volume_charge_density | ) |
scifir::SCALAR_UNIT_HPP | ( | volumetric_flow | ) |
scifir::SCALAR_UNIT_HPP | ( | wavenumber | ) |
scifir::SCALAR_UNIT_HPP_BEGIN | ( | area | ) |
scifir::SCALAR_UNIT_HPP_BEGIN | ( | mass | ) |
scifir::SCALAR_UNIT_HPP_BEGIN | ( | mole | ) |
scifir::SCALAR_UNIT_HPP_BEGIN | ( | volume | ) |
scifir::SCALAR_UNIT_HPP_END | ( | ) |
Calculates the sin of angle x. It uses the sin() function of the standard library of C++, the difference is that angle is in degrees, not in radians.
Calculates the sinh of angle x. It uses the sinh() function of the standard library of C++, the difference is that angle is in degrees, not in radians.
|
inline |
Returns the x coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates.
Definition at line 763 of file coordinates_3d.hpp.
|
inline |
Returns the x coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates.
Definition at line 855 of file coordinates_3d.hpp.
|
inline |
Returns the y coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates.
Definition at line 768 of file coordinates_3d.hpp.
|
inline |
Returns the y coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates.
Definition at line 860 of file coordinates_3d.hpp.
|
inline |
Returns the z coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates.
Definition at line 773 of file coordinates_3d.hpp.
|
inline |
Returns the z coordinate of the cartesian coordinates in 3D given the r, theta and phi of spherical coordinates.
Definition at line 865 of file coordinates_3d.hpp.
|
inline |
Returns the p coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates.
Definition at line 778 of file coordinates_3d.hpp.
Returns the p coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates.
Definition at line 870 of file coordinates_3d.hpp.
|
inline |
Returns the theta coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates.
Definition at line 783 of file coordinates_3d.hpp.
|
inline |
Returns the theta coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates.
Definition at line 875 of file coordinates_3d.hpp.
|
inline |
Returns the z coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates.
Definition at line 788 of file coordinates_3d.hpp.
Returns the z coordinate of the cylindrical coordinates given the r, theta and phi of spherical coordinates.
Definition at line 880 of file coordinates_3d.hpp.
Calculates the square root of the angle x and returns that new angle.
Definition at line 416 of file angle.cpp.
complex_number< scalar_unit > scifir::sqrt | ( | const complex_number< T > & | x | ) |
Definition at line 192 of file complex_number.hpp.
scalar_unit scifir::sqrt | ( | const scalar_unit & | x | ) |
Square root of a scalar_unit, it squares the dimensions too.
Definition at line 947 of file scalar_unit.cpp.
vector_unit_2d scifir::sqrt | ( | const vector_unit_2d & | x | ) |
It squares the vector, creating a vector_unit_2d with the value squared and always the same theta. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes.
Definition at line 350 of file vector_unit_2d.cpp.
vector_unit_3d scifir::sqrt | ( | const vector_unit_3d & | x | ) |
It squares the vector, creating a vector_unit_3d with the value squared and always the same theta and the same phi. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes.
Definition at line 455 of file vector_unit_3d.cpp.
vector_unit_nd scifir::sqrt | ( | const vector_unit_nd & | x | ) |
It squares the vector, creating a vector_unit_nd with the value squared and always the same angles. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes.
Definition at line 791 of file vector_unit_nd.cpp.
scalar_unit scifir::sqrt_nth | ( | const scalar_unit & | x, |
int | index | ||
) |
Nth root of a scalar_unit to any numeric value, it squares the dimensions too.
Definition at line 955 of file scalar_unit.cpp.
vector_unit_2d scifir::sqrt_nth | ( | const vector_unit_2d & | x, |
int | index | ||
) |
It takes the root of the vector with the index given, creating a vector_unit_2d with the value rooted to that index and always maintains the same theta. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes.
Definition at line 356 of file vector_unit_2d.cpp.
vector_unit_3d scifir::sqrt_nth | ( | const vector_unit_3d & | x, |
int | index | ||
) |
It takes the root of the vector with the index given, creating a vector_unit_3d with the value rooted to that index and always maintains the same theta and the same phi. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes.
Definition at line 461 of file vector_unit_3d.cpp.
vector_unit_nd scifir::sqrt_nth | ( | const vector_unit_nd & | x, |
int | index | ||
) |
It takes the root of the vector with the index given, creating a vector_unit_nd with the value rooted to that index and always maintains the same angles. The dimensions are squared with the same rules for the square of dimensions than scalar_unit classes.
Definition at line 797 of file vector_unit_nd.cpp.
vector< dimension > scifir::square_dimensions | ( | vector< dimension > | x, |
int | index, | ||
long double & | value | ||
) |
Squares a vector of dimensions by an index. The value is updated too related to the prefix math and the conversion factor of this operation.
Definition at line 2118 of file dimension.cpp.
Calculates the tan of angle x. It uses the tan() function of the standard library of C++, the difference is that angle is in degrees, not in radians.
Calculates the tanh of angle x. It uses the tanh() function of the standard library of C++, the difference is that angle is in degrees, not in radians.
Definition at line 1782 of file dimension.cpp.
string scifir::to_string | ( | cardinale_point | x | ) |
Definition at line 7 of file coordinates_3d.cpp.
Creates a string representation of aid, it's for aid equivalent to the display() function of aid.
Converts a value of the enum aid::type to its string representation, which can be a single or a pair of letters. The value UNIVERSE returns U. The value GALAXY returns G. The value SOLAR_SYSTEM returns SS. The value PLANET returns P. The value STAR returns ST. The value ASTEROID returns A. The value MOON returns MN. The value METEOR returns MT. The value NONE returns an empty string.
Definition at line 587 of file aid.cpp.
Converts an angle to their string representation.
Definition at line 331 of file angle.cpp.
Definition at line 178 of file complex_number.hpp.
string scifir::to_string | ( | const coordinates_1d< float > & | x | ) |
Definition at line 8 of file coordinates_1d.cpp.
Definition at line 183 of file coordinates_1d.hpp.
string scifir::to_string | ( | const coordinates_2d< float > & | x | ) |
Definition at line 9 of file coordinates_2d.cpp.
Definition at line 339 of file coordinates_2d.hpp.
string scifir::to_string | ( | const coordinates_2dr< float > & | x | ) |
Definition at line 7 of file coordinates_2dr.cpp.
Definition at line 456 of file coordinates_2dr.hpp.
string scifir::to_string | ( | const coordinates_3d< float > & | x | ) |
Returns the string representation of coordinates_3d<float>.
Definition at line 23 of file coordinates_3d.cpp.
Returns the string representation of coordinates_3d.
Definition at line 709 of file coordinates_3d.hpp.
string scifir::to_string | ( | const coordinates_3dr< float > & | x | ) |
Definition at line 7 of file coordinates_3dr.cpp.
Definition at line 900 of file coordinates_3dr.hpp.
string scifir::to_string | ( | const coordinates_nd< float > & | x | ) |
Definition at line 7 of file coordinates_nd.cpp.
Definition at line 1134 of file coordinates_nd.hpp.
string scifir::to_string | ( | const coordinates_ndr< float > & | x | ) |
Definition at line 10 of file coordinates_ndr.cpp.
Definition at line 2150 of file coordinates_ndr.hpp.
Creates the string representation of a dimension.
Definition at line 1659 of file dimension.cpp.
Definition at line 341 of file direction.cpp.
Definition at line 114 of file lab_number.hpp.
string scifir::to_string | ( | const percentage & | x | ) |
Returns a string representation of percentage x.
Definition at line 483 of file percentage.cpp.
string scifir::to_string | ( | const scalar_unit & | x | ) |
Generates a string representation of the scalar_unit, it uses the display of the scalar_unit with 2 decimals, without brackets and without a close prefix.
x | scalar_unit to generate the string. |
Definition at line 740 of file scalar_unit.cpp.
Returns a string representation of size_2d<float>.
Definition at line 7 of file size_2d.cpp.
Returns a string representation of size_2d<T>.
Definition at line 212 of file size_2d.hpp.
Returns a string representation of size_3d<float>.
Definition at line 7 of file size_3d.cpp.
Returns a string representation of size_3d<T>.
Definition at line 226 of file size_3d.hpp.
Definition at line 7 of file size_nd.cpp.
Definition at line 350 of file size_nd.hpp.
Creates the string representation of a vector of dimensions. Used to display the dimensions of scalar_unit and all vector_unit classes. The dimensions can be displayed optionally between brackets like '[]' too.
Definition at line 1666 of file dimension.cpp.
string scifir::to_string | ( | const vector_unit_2d & | x | ) |
It generates a string representation of vector_unit_2d.
string scifir::to_string | ( | const vector_unit_3d & | x | ) |
It generates a string representation of vector_unit_3d.
string scifir::to_string | ( | const vector_unit_nd & | x | ) |
It generates a string representation of vector_unit_nd.
Definition at line 781 of file vector_unit_nd.cpp.
Returns a string representation of zid, same as display().
Definition at line 288 of file zid.cpp.
Converts a value of the enum zid::type to its string representation, which is a single letter. The value COUNTRY returns C. The value REGION returns R. The value SETTLEMENT returns S. The value ZONE returns Z.
Definition at line 293 of file zid.cpp.
string scifir::to_string | ( | direction::name | x | ) |
Definition at line 279 of file direction.cpp.
scifir::VECTOR_UNIT_2D_CPP | ( | displacement | , |
"m" | |||
) |
scifir::VECTOR_UNIT_2D_HPP | ( | displacement | ) |
scifir::VECTOR_UNIT_3D_CPP | ( | displacement | , |
"m" | |||
) |
scifir::VECTOR_UNIT_3D_HPP | ( | displacement | ) |
scifir::VECTOR_UNIT_CPP | ( | acceleration | , |
"m/s2" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | angular_acceleration | , |
"rad/s2" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | angular_momentum | , |
"m2*kg/s" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | angular_velocity | , |
"rad/s" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | electric_displacement_field | , |
"C/m2" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | electric_field_strength | , |
"V/m" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | force | , |
"N" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | irradiance | , |
"kg/s3" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | magnetic_flux_density | , |
"T" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | magnetic_moment | , |
"Wb*m" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | magnetic_vector_potential | , |
"Wb/m" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | magnetomotive_force | , |
"A*rad" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | pressure | , |
"Pa" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | radiant_exposure | , |
"kg/s2" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | radiant_flux | , |
"kg*m2/s3" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | specific_angular_momentum | , |
"m2/s" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | spectral_flux | , |
"kg*m/s3" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | surface_tension | , |
"kg/s2" | |||
) |
scifir::VECTOR_UNIT_CPP | ( | temperature_gradient | , |
"K/m" | |||
) |
scifir::VECTOR_UNIT_HPP | ( | acceleration | ) |
scifir::VECTOR_UNIT_HPP | ( | angular_acceleration | ) |
scifir::VECTOR_UNIT_HPP | ( | angular_momentum | ) |
scifir::VECTOR_UNIT_HPP | ( | angular_velocity | ) |
scifir::VECTOR_UNIT_HPP | ( | electric_displacement_field | ) |
scifir::VECTOR_UNIT_HPP | ( | electric_field_strength | ) |
scifir::VECTOR_UNIT_HPP | ( | force | ) |
scifir::VECTOR_UNIT_HPP | ( | impulse | ) |
scifir::VECTOR_UNIT_HPP | ( | irradiance | ) |
scifir::VECTOR_UNIT_HPP | ( | jerk | ) |
scifir::VECTOR_UNIT_HPP | ( | magnetic_flux_density | ) |
scifir::VECTOR_UNIT_HPP | ( | magnetic_moment | ) |
scifir::VECTOR_UNIT_HPP | ( | magnetic_vector_potential | ) |
scifir::VECTOR_UNIT_HPP | ( | magnetomotive_force | ) |
scifir::VECTOR_UNIT_HPP | ( | momentum | ) |
scifir::VECTOR_UNIT_HPP | ( | pressure | ) |
scifir::VECTOR_UNIT_HPP | ( | radiant_exposure | ) |
scifir::VECTOR_UNIT_HPP | ( | radiant_flux | ) |
scifir::VECTOR_UNIT_HPP | ( | snap | ) |
scifir::VECTOR_UNIT_HPP | ( | specific_angular_momentum | ) |
scifir::VECTOR_UNIT_HPP | ( | spectral_flux | ) |
scifir::VECTOR_UNIT_HPP | ( | surface_tension | ) |
scifir::VECTOR_UNIT_HPP | ( | temperature_gradient | ) |
scifir::VECTOR_UNIT_HPP | ( | torque | ) |
scifir::VECTOR_UNIT_HPP | ( | velocity | ) |
scifir::VECTOR_UNIT_HPP | ( | yank | ) |
scifir::VECTOR_UNIT_ND_CPP | ( | displacement | , |
"m" | |||
) |
scifir::VECTOR_UNIT_ND_HPP | ( | displacement | ) |
Definition at line 20 of file constants.hpp.
Definition at line 15 of file constants.hpp.
Definition at line 14 of file constants.hpp.
Definition at line 7 of file coordinates_ndr.cpp.
Definition at line 21 of file constants.hpp.
Definition at line 13 of file constants.hpp.
Definition at line 24 of file constants.hpp.
Definition at line 18 of file constants.hpp.
Definition at line 10 of file constants.hpp.
Definition at line 16 of file constants.hpp.
Definition at line 19 of file constants.hpp.
Definition at line 12 of file constants.hpp.
Definition at line 23 of file constants.hpp.
Definition at line 11 of file constants.hpp.
Definition at line 22 of file constants.hpp.
const scalar_unit scifir::WGS84_EARTH_SEMIAXIS_A = 6378137_m |
Definition at line 9 of file constants.cpp.
const scalar_unit scifir::WGS84_EARTH_SEMIAXIS_B = 6356752.314245_m |
Definition at line 10 of file constants.cpp.