Physical Quantities  v1.0.0
C++ library of physical quantities, physical models, and units of measure for scientific computing. https://github.com/acodcha/phq
Classes | Namespaces | Functions | Variables
Dimensions.hpp File Reference
#include "Base.hpp"
#include "Dimension/ElectricCurrent.hpp"
#include "Dimension/Length.hpp"
#include "Dimension/LuminousIntensity.hpp"
#include "Dimension/Mass.hpp"
#include "Dimension/SubstanceAmount.hpp"
#include "Dimension/Temperature.hpp"
#include "Dimension/Time.hpp"

Go to the source code of this file.

Classes

class  PhQ::Dimensions
 Physical dimension set of a unit of measure or physical quantity. Composed of the seven independent base physical dimensions: time (T), length (L), mass (M), electric current (I), temperature (Θ), amount of substance (N), and luminous intensity (J). Units of measure that share the same physical dimension set are of the same type and can be converted between one another. For example, the metre per second and the mile per hour are both units of measure that have the same physical dimension set of T^(-1)·L, which is the physical dimension set of speed, so these two units of measure can be converted between one another. On the other hand, the kilogram per cubic metre is a unit of measure with physical dimension set L^(-3)·M, which is the physical dimension set of mass density, so this unit of measure cannot be converted to either the metre per second or the mile per hour, which have a different physical dimension set. More...
 

Namespaces

 PhQ
 Namespace that encompasses all of the Physical Quantities library's content.
 

Functions

constexpr bool PhQ::operator== (const Dimensions &left, const Dimensions &right) noexcept
 
constexpr bool PhQ::operator!= (const Dimensions &left, const Dimensions &right) noexcept
 
constexpr bool PhQ::operator< (const Dimensions &left, const Dimensions &right) noexcept
 
constexpr bool PhQ::operator> (const Dimensions &left, const Dimensions &right) noexcept
 
constexpr bool PhQ::operator<= (const Dimensions &left, const Dimensions &right) noexcept
 
constexpr bool PhQ::operator>= (const Dimensions &left, const Dimensions &right) noexcept
 
std::ostream & PhQ::operator<< (std::ostream &stream, const Dimensions &dimensions)
 

Variables

constexpr Dimensions PhQ::Dimensionless
 Dimensionless physical dimension set. This dimension set has all base dimensions of zero. Applies to all dimensionless units of measure and dimensionless physical quantities. More...