Physical Quantities  v1.0.0
C++ library of physical quantities, physical models, and units of measure for scientific computing. https://github.com/acodcha/phq
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | List of all members
PhQ::Velocity< NumericType > Class Template Reference

Three-dimensional Euclidean velocity vector. Contains three components in Cartesian coordinates: x, y, and z. For a two-dimensional Euclidean velocity vector in the XY plane, see PhQ::PlanarVelocity. For scalar velocity components or for the magnitude of a velocity vector, see PhQ::Speed. More...

#include "Velocity.hpp"

Public Member Functions

 Velocity ()=default
 Default constructor. Constructs a velocity vector with an uninitialized value. More...
 
 Velocity (const Vector< NumericType > &value, const Unit::Speed unit)
 Constructor. Constructs a velocity vector with a given value expressed in a given speed unit. More...
 
 Velocity (const Speed< NumericType > &x, const Speed< NumericType > &y, const Speed< NumericType > &z)
 Constructor. Constructs a velocity vector from a given set of speed components. More...
 
constexpr Velocity (const Speed< NumericType > &speed, const Direction< NumericType > &direction)
 Constructor. Constructs a velocity vector from a given speed and direction. More...
 
constexpr Velocity (const PlanarVelocity< NumericType > &planar_velocity)
 Constructor. Constructs a velocity vector from a given planar velocity vector in the XY plane. This velocity vector's z-component is initialized to zero. More...
 
constexpr Velocity (const Displacement< NumericType > &displacement, const Time< NumericType > &time)
 Constructor. Constructs a velocity vector from a given displacement vector and time using the definition of velocity. More...
 
constexpr Velocity (const Displacement< NumericType > &displacement, const Frequency< NumericType > &frequency)
 Constructor. Constructs a velocity vector from a given displacement vector and frequency using the definition of velocity. More...
 
constexpr Velocity (const Acceleration< NumericType > &acceleration, const Time< NumericType > &time)
 Constructor. Constructs a velocity vector from a given acceleration vector and time using the definition of acceleration. More...
 
constexpr Velocity (const Acceleration< NumericType > &acceleration, const Frequency< NumericType > &frequency)
 Constructor. Constructs a velocity vector from a given acceleration vector and frequency using the definition of acceleration. More...
 
 ~Velocity () noexcept=default
 Destructor. Destroys this velocity vector. More...
 
constexpr Velocity (const Velocity< NumericType > &other)=default
 Copy constructor. Constructs a velocity vector by copying another one. More...
 
template<typename OtherNumericType >
constexpr Velocity (const Velocity< OtherNumericType > &other)
 Copy constructor. Constructs a velocity by copying another one. More...
 
constexpr Velocity (Velocity< NumericType > &&other) noexcept=default
 Move constructor. Constructs a velocity vector by moving another one. More...
 
constexpr Velocity< NumericType > & operator= (const Velocity< NumericType > &other)=default
 Copy assignment operator. Assigns this velocity vector by copying another one. More...
 
template<typename OtherNumericType >
constexpr Velocity< NumericType > & operator= (const Velocity< OtherNumericType > &other)
 Copy assignment operator. Assigns this velocity by copying another one. More...
 
constexpr Velocity< NumericType > & operator= (Velocity< NumericType > &&other) noexcept=default
 Move assignment operator. Assigns this velocity vector by moving another one. More...
 
constexpr Speed< NumericType > x () const noexcept
 Returns the x Cartesian component of this velocity vector. More...
 
constexpr Speed< NumericType > y () const noexcept
 Returns the y Cartesian component of this velocity vector. More...
 
constexpr Speed< NumericType > z () const noexcept
 Returns the z Cartesian component of this velocity vector. More...
 
Speed< NumericType > Magnitude () const
 Returns the magnitude of this velocity vector. More...
 
PhQ::Direction< NumericType > Direction () const
 Returns the direction of this velocity vector. More...
 
PhQ::Angle< NumericType > Angle (const Velocity< NumericType > &velocity) const
 Returns the angle between this velocity vector and another one. More...
 
constexpr Velocity< NumericType > operator+ (const Velocity< NumericType > &velocity) const
 
constexpr Velocity< NumericType > operator- (const Velocity< NumericType > &velocity) const
 
constexpr Velocity< NumericType > operator* (const NumericType number) const
 
constexpr Displacement< NumericType > operator* (const Time< NumericType > &time) const
 
constexpr Acceleration< NumericType > operator* (const Frequency< NumericType > &frequency) const
 
constexpr Velocity< NumericType > operator/ (const NumericType number) const
 
constexpr Acceleration< NumericType > operator/ (const Time< NumericType > &time) const
 
constexpr Displacement< NumericType > operator/ (const Frequency< NumericType > &frequency) const
 
constexpr void operator+= (const Velocity< NumericType > &velocity) noexcept
 
constexpr void operator-= (const Velocity< NumericType > &velocity) noexcept
 
constexpr void operator*= (const NumericType number) noexcept
 
constexpr void operator/= (const NumericType number) noexcept
 
constexpr const PhQ::Vector< double > & Value () const noexcept
 Value of this physical quantity expressed in its standard unit of measure. More...
 
PhQ::Vector< double > Value (const Unit::Speed unit) const
 Value of this physical quantity expressed in a given unit of measure. More...
 
constexpr PhQ::Vector< double > StaticValue () const
 Value of this physical quantity expressed in a given unit of measure. This method can be evaluated statically at compile-time. More...
 
constexpr PhQ::Vector< double > & MutableValue () noexcept
 Returns the value of this physical quantity expressed in its standard unit of measure as a mutable value. More...
 
constexpr void SetValue (const PhQ::Vector< double > &value) noexcept
 Sets the value of this physical quantity expressed in its standard unit of measure to the given value. More...
 
std::string Print () const
 Prints this physical quantity as a string. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string Print (const Unit::Speed unit) const
 Prints this physical quantity as a string. This physical quantity's value is expressed in the given unit of measure. More...
 
std::string JSON () const
 Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string JSON (const Unit::Speed unit) const
 Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in the given unit of measure. More...
 
std::string XML () const
 Serializes this physical quantity as an XML message. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string XML (const Unit::Speed unit) const
 Serializes this physical quantity as an XML message. This physical quantity's value is expressed in the given unit of measure. More...
 
std::string YAML () const
 Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string YAML (const Unit::Speed unit) const
 Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in the given unit of measure. More...
 

Static Public Member Functions

static constexpr Velocity< NumericType > Zero ()
 Statically creates a velocity vector of zero. More...
 
template<Unit::Speed Unit>
static constexpr Velocity< NumericType > Create (const NumericType x, const NumericType y, const NumericType z)
 Statically creates a velocity vector from the given x, y, and z Cartesian components expressed in a given speed unit. More...
 
template<Unit::Speed Unit>
static constexpr Velocity< NumericType > Create (const std::array< NumericType, 3 > &x_y_z)
 Statically creates a velocity vector from the given x, y, and z Cartesian components expressed in a given speed unit. More...
 
template<Unit::Speed Unit>
static constexpr Velocity< NumericType > Create (const Vector< NumericType > &value)
 Statically creates a velocity vector with a given value expressed in a given speed unit. More...
 
static constexpr const PhQ::DimensionsDimensions ()
 Physical dimension set of this physical quantity. More...
 
static constexpr Unit::Speed Unit ()
 Standard unit of measure for this physical quantity. This physical quantity's value is stored internally in this unit of measure. More...
 

Protected Attributes

PhQ::Vector< double > value
 Value of this physical quantity expressed in its standard unit of measure. More...
 

Private Member Functions

constexpr Velocity (const Vector< NumericType > &value)
 Constructor. Constructs a velocity vector with a given value expressed in the standard speed unit. More...
 

Detailed Description

template<typename NumericType = double>
class PhQ::Velocity< NumericType >

Three-dimensional Euclidean velocity vector. Contains three components in Cartesian coordinates: x, y, and z. For a two-dimensional Euclidean velocity vector in the XY plane, see PhQ::PlanarVelocity. For scalar velocity components or for the magnitude of a velocity vector, see PhQ::Speed.

Definition at line 55 of file Velocity.hpp.

Constructor & Destructor Documentation

◆ Velocity() [1/13]

template<typename NumericType = double>
PhQ::Velocity< NumericType >::Velocity ( )
default

Default constructor. Constructs a velocity vector with an uninitialized value.

◆ Velocity() [2/13]

template<typename NumericType = double>
PhQ::Velocity< NumericType >::Velocity ( const Vector< NumericType > &  value,
const Unit::Speed  unit 
)
inline

Constructor. Constructs a velocity vector with a given value expressed in a given speed unit.

Definition at line 62 of file Velocity.hpp.

◆ Velocity() [3/13]

template<typename NumericType = double>
PhQ::Velocity< NumericType >::Velocity ( const Speed< NumericType > &  x,
const Speed< NumericType > &  y,
const Speed< NumericType > &  z 
)
inline

Constructor. Constructs a velocity vector from a given set of speed components.

Definition at line 66 of file Velocity.hpp.

References PhQ::Velocity< NumericType >::x(), PhQ::Velocity< NumericType >::y(), and PhQ::Velocity< NumericType >::z().

◆ Velocity() [4/13]

template<typename NumericType = double>
constexpr PhQ::Velocity< NumericType >::Velocity ( const Speed< NumericType > &  speed,
const Direction< NumericType > &  direction 
)
inlineconstexpr

Constructor. Constructs a velocity vector from a given speed and direction.

Definition at line 70 of file Velocity.hpp.

◆ Velocity() [5/13]

template<typename NumericType = double>
constexpr PhQ::Velocity< NumericType >::Velocity ( const PlanarVelocity< NumericType > &  planar_velocity)
inlineexplicitconstexpr

Constructor. Constructs a velocity vector from a given planar velocity vector in the XY plane. This velocity vector's z-component is initialized to zero.

Definition at line 75 of file Velocity.hpp.

References PhQ::DimensionalPlanarVector< UnitType, NumericType >::Value().

◆ Velocity() [6/13]

template<typename NumericType = double>
constexpr PhQ::Velocity< NumericType >::Velocity ( const Displacement< NumericType > &  displacement,
const Time< NumericType > &  time 
)
inlineconstexpr

Constructor. Constructs a velocity vector from a given displacement vector and time using the definition of velocity.

Definition at line 80 of file Velocity.hpp.

◆ Velocity() [7/13]

template<typename NumericType = double>
constexpr PhQ::Velocity< NumericType >::Velocity ( const Displacement< NumericType > &  displacement,
const Frequency< NumericType > &  frequency 
)
inlineconstexpr

Constructor. Constructs a velocity vector from a given displacement vector and frequency using the definition of velocity.

Definition at line 85 of file Velocity.hpp.

◆ Velocity() [8/13]

template<typename NumericType >
constexpr PhQ::Velocity< NumericType >::Velocity ( const Acceleration< NumericType > &  acceleration,
const Time< NumericType > &  time 
)
inlineconstexpr

Constructor. Constructs a velocity vector from a given acceleration vector and time using the definition of acceleration.

Definition at line 292 of file Acceleration.hpp.

◆ Velocity() [9/13]

template<typename NumericType >
constexpr PhQ::Velocity< NumericType >::Velocity ( const Acceleration< NumericType > &  acceleration,
const Frequency< NumericType > &  frequency 
)
inlineconstexpr

Constructor. Constructs a velocity vector from a given acceleration vector and frequency using the definition of acceleration.

Definition at line 297 of file Acceleration.hpp.

◆ ~Velocity()

template<typename NumericType = double>
PhQ::Velocity< NumericType >::~Velocity ( )
defaultnoexcept

Destructor. Destroys this velocity vector.

◆ Velocity() [10/13]

template<typename NumericType = double>
constexpr PhQ::Velocity< NumericType >::Velocity ( const Velocity< NumericType > &  other)
constexprdefault

Copy constructor. Constructs a velocity vector by copying another one.

◆ Velocity() [11/13]

template<typename NumericType = double>
template<typename OtherNumericType >
constexpr PhQ::Velocity< NumericType >::Velocity ( const Velocity< OtherNumericType > &  other)
inlineexplicitconstexpr

Copy constructor. Constructs a velocity by copying another one.

Definition at line 106 of file Velocity.hpp.

◆ Velocity() [12/13]

template<typename NumericType = double>
constexpr PhQ::Velocity< NumericType >::Velocity ( Velocity< NumericType > &&  other)
constexprdefaultnoexcept

Move constructor. Constructs a velocity vector by moving another one.

◆ Velocity() [13/13]

template<typename NumericType = double>
constexpr PhQ::Velocity< NumericType >::Velocity ( const Vector< NumericType > &  value)
inlineexplicitconstexprprivate

Constructor. Constructs a velocity vector with a given value expressed in the standard speed unit.

Definition at line 233 of file Velocity.hpp.

Member Function Documentation

◆ Angle()

template<typename NumericType = double>
PhQ::Angle<NumericType> PhQ::Velocity< NumericType >::Angle ( const Velocity< NumericType > &  velocity) const
inline

Returns the angle between this velocity vector and another one.

Definition at line 182 of file Velocity.hpp.

◆ Create() [1/3]

template<typename NumericType = double>
template<Unit::Speed Unit>
static constexpr Velocity<NumericType> PhQ::Velocity< NumericType >::Create ( const NumericType  x,
const NumericType  y,
const NumericType  z 
)
inlinestaticconstexpr

Statically creates a velocity vector from the given x, y, and z Cartesian components expressed in a given speed unit.

Definition at line 133 of file Velocity.hpp.

References PhQ::Velocity< NumericType >::x(), PhQ::Velocity< NumericType >::y(), and PhQ::Velocity< NumericType >::z().

◆ Create() [2/3]

template<typename NumericType = double>
template<Unit::Speed Unit>
static constexpr Velocity<NumericType> PhQ::Velocity< NumericType >::Create ( const std::array< NumericType, 3 > &  x_y_z)
inlinestaticconstexpr

Statically creates a velocity vector from the given x, y, and z Cartesian components expressed in a given speed unit.

Definition at line 142 of file Velocity.hpp.

◆ Create() [3/3]

template<typename NumericType = double>
template<Unit::Speed Unit>
static constexpr Velocity<NumericType> PhQ::Velocity< NumericType >::Create ( const Vector< NumericType > &  value)
inlinestaticconstexpr

Statically creates a velocity vector with a given value expressed in a given speed unit.

Definition at line 151 of file Velocity.hpp.

References PhQ::DimensionalVector< Unit::Speed, double >::value.

◆ Dimensions()

static constexpr const PhQ::Dimensions& PhQ::DimensionalVector< Unit::Speed , double >::Dimensions ( )
inlinestaticconstexprinherited

Physical dimension set of this physical quantity.

Definition at line 50 of file DimensionalVector.hpp.

◆ Direction()

template<typename NumericType = double>
PhQ::Direction<NumericType> PhQ::Velocity< NumericType >::Direction ( ) const
inline

Returns the direction of this velocity vector.

Definition at line 177 of file Velocity.hpp.

References PhQ::Vector< NumericType >::Direction(), and PhQ::DimensionalVector< Unit::Speed, double >::value.

◆ JSON() [1/2]

std::string PhQ::DimensionalVector< Unit::Speed , double >::JSON ( ) const
inlineinherited

Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 103 of file DimensionalVector.hpp.

◆ JSON() [2/2]

std::string PhQ::DimensionalVector< Unit::Speed , double >::JSON ( const Unit::Speed  unit) const
inlineinherited

Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in the given unit of measure.

Definition at line 113 of file DimensionalVector.hpp.

◆ Magnitude()

template<typename NumericType = double>
Speed<NumericType> PhQ::Velocity< NumericType >::Magnitude ( ) const
inline

Returns the magnitude of this velocity vector.

Definition at line 172 of file Velocity.hpp.

References PhQ::Vector< NumericType >::Magnitude(), and PhQ::DimensionalVector< Unit::Speed, double >::value.

◆ MutableValue()

constexpr PhQ::Vector<double >& PhQ::DimensionalVector< Unit::Speed , double >::MutableValue ( )
inlineconstexprnoexceptinherited

Returns the value of this physical quantity expressed in its standard unit of measure as a mutable value.

Definition at line 79 of file DimensionalVector.hpp.

◆ operator*() [1/3]

template<typename NumericType >
constexpr Acceleration< NumericType > PhQ::Velocity< NumericType >::operator* ( const Frequency< NumericType > &  frequency) const
inlineconstexpr

Definition at line 320 of file Acceleration.hpp.

◆ operator*() [2/3]

template<typename NumericType = double>
constexpr Velocity<NumericType> PhQ::Velocity< NumericType >::operator* ( const NumericType  number) const
inlineconstexpr

◆ operator*() [3/3]

template<typename NumericType = double>
constexpr Displacement<NumericType> PhQ::Velocity< NumericType >::operator* ( const Time< NumericType > &  time) const
inlineconstexpr

Definition at line 198 of file Velocity.hpp.

◆ operator*=()

template<typename NumericType = double>
constexpr void PhQ::Velocity< NumericType >::operator*= ( const NumericType  number)
inlineconstexprnoexcept

◆ operator+()

template<typename NumericType = double>
constexpr Velocity<NumericType> PhQ::Velocity< NumericType >::operator+ ( const Velocity< NumericType > &  velocity) const
inlineconstexpr

◆ operator+=()

template<typename NumericType = double>
constexpr void PhQ::Velocity< NumericType >::operator+= ( const Velocity< NumericType > &  velocity)
inlineconstexprnoexcept

◆ operator-()

template<typename NumericType = double>
constexpr Velocity<NumericType> PhQ::Velocity< NumericType >::operator- ( const Velocity< NumericType > &  velocity) const
inlineconstexpr

◆ operator-=()

template<typename NumericType = double>
constexpr void PhQ::Velocity< NumericType >::operator-= ( const Velocity< NumericType > &  velocity)
inlineconstexprnoexcept

◆ operator/() [1/3]

template<typename NumericType = double>
constexpr Displacement<NumericType> PhQ::Velocity< NumericType >::operator/ ( const Frequency< NumericType > &  frequency) const
inlineconstexpr

Definition at line 210 of file Velocity.hpp.

◆ operator/() [2/3]

template<typename NumericType = double>
constexpr Velocity<NumericType> PhQ::Velocity< NumericType >::operator/ ( const NumericType  number) const
inlineconstexpr

◆ operator/() [3/3]

template<typename NumericType >
constexpr Acceleration< NumericType > PhQ::Velocity< NumericType >::operator/ ( const Time< NumericType > &  time) const
inlineconstexpr

Definition at line 332 of file Acceleration.hpp.

◆ operator/=()

template<typename NumericType = double>
constexpr void PhQ::Velocity< NumericType >::operator/= ( const NumericType  number)
inlineconstexprnoexcept

◆ operator=() [1/3]

template<typename NumericType = double>
constexpr Velocity<NumericType>& PhQ::Velocity< NumericType >::operator= ( const Velocity< NumericType > &  other)
constexprdefault

Copy assignment operator. Assigns this velocity vector by copying another one.

◆ operator=() [2/3]

template<typename NumericType = double>
template<typename OtherNumericType >
constexpr Velocity<NumericType>& PhQ::Velocity< NumericType >::operator= ( const Velocity< OtherNumericType > &  other)
inlineconstexpr

Copy assignment operator. Assigns this velocity by copying another one.

Definition at line 117 of file Velocity.hpp.

References PhQ::DimensionalVector< UnitType, NumericType >::Value(), and PhQ::DimensionalVector< Unit::Speed, double >::value.

◆ operator=() [3/3]

template<typename NumericType = double>
constexpr Velocity<NumericType>& PhQ::Velocity< NumericType >::operator= ( Velocity< NumericType > &&  other)
constexprdefaultnoexcept

Move assignment operator. Assigns this velocity vector by moving another one.

◆ Print() [1/2]

std::string PhQ::DimensionalVector< Unit::Speed , double >::Print ( ) const
inlineinherited

Prints this physical quantity as a string. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 91 of file DimensionalVector.hpp.

◆ Print() [2/2]

std::string PhQ::DimensionalVector< Unit::Speed , double >::Print ( const Unit::Speed  unit) const
inlineinherited

Prints this physical quantity as a string. This physical quantity's value is expressed in the given unit of measure.

Definition at line 97 of file DimensionalVector.hpp.

◆ SetValue()

constexpr void PhQ::DimensionalVector< Unit::Speed , double >::SetValue ( const PhQ::Vector< double > &  value)
inlineconstexprnoexceptinherited

Sets the value of this physical quantity expressed in its standard unit of measure to the given value.

Definition at line 85 of file DimensionalVector.hpp.

◆ StaticValue()

constexpr PhQ::Vector<double > PhQ::DimensionalVector< Unit::Speed , double >::StaticValue ( ) const
inlineconstexprinherited

Value of this physical quantity expressed in a given unit of measure. This method can be evaluated statically at compile-time.

Definition at line 73 of file DimensionalVector.hpp.

◆ Unit()

static constexpr Unit::Speed PhQ::DimensionalVector< Unit::Speed , double >::Unit ( )
inlinestaticconstexprinherited

Standard unit of measure for this physical quantity. This physical quantity's value is stored internally in this unit of measure.

Definition at line 56 of file DimensionalVector.hpp.

◆ Value() [1/2]

constexpr const PhQ::Vector<double >& PhQ::DimensionalVector< Unit::Speed , double >::Value ( ) const
inlineconstexprnoexceptinherited

Value of this physical quantity expressed in its standard unit of measure.

Definition at line 61 of file DimensionalVector.hpp.

◆ Value() [2/2]

PhQ::Vector<double > PhQ::DimensionalVector< Unit::Speed , double >::Value ( const Unit::Speed  unit) const
inlineinherited

Value of this physical quantity expressed in a given unit of measure.

Definition at line 66 of file DimensionalVector.hpp.

◆ x()

template<typename NumericType = double>
constexpr Speed<NumericType> PhQ::Velocity< NumericType >::x ( ) const
inlineconstexprnoexcept

Returns the x Cartesian component of this velocity vector.

Definition at line 157 of file Velocity.hpp.

References PhQ::DimensionalVector< Unit::Speed, double >::value, and PhQ::Vector< NumericType >::x().

Referenced by PhQ::Velocity< NumericType >::Create(), and PhQ::Velocity< NumericType >::Velocity().

◆ XML() [1/2]

std::string PhQ::DimensionalVector< Unit::Speed , double >::XML ( ) const
inlineinherited

Serializes this physical quantity as an XML message. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 123 of file DimensionalVector.hpp.

◆ XML() [2/2]

std::string PhQ::DimensionalVector< Unit::Speed , double >::XML ( const Unit::Speed  unit) const
inlineinherited

Serializes this physical quantity as an XML message. This physical quantity's value is expressed in the given unit of measure.

Definition at line 133 of file DimensionalVector.hpp.

◆ y()

template<typename NumericType = double>
constexpr Speed<NumericType> PhQ::Velocity< NumericType >::y ( ) const
inlineconstexprnoexcept

Returns the y Cartesian component of this velocity vector.

Definition at line 162 of file Velocity.hpp.

References PhQ::DimensionalVector< Unit::Speed, double >::value, and PhQ::Vector< NumericType >::y().

Referenced by PhQ::Velocity< NumericType >::Create(), and PhQ::Velocity< NumericType >::Velocity().

◆ YAML() [1/2]

std::string PhQ::DimensionalVector< Unit::Speed , double >::YAML ( ) const
inlineinherited

Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 143 of file DimensionalVector.hpp.

◆ YAML() [2/2]

std::string PhQ::DimensionalVector< Unit::Speed , double >::YAML ( const Unit::Speed  unit) const
inlineinherited

Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in the given unit of measure.

Definition at line 153 of file DimensionalVector.hpp.

◆ z()

template<typename NumericType = double>
constexpr Speed<NumericType> PhQ::Velocity< NumericType >::z ( ) const
inlineconstexprnoexcept

Returns the z Cartesian component of this velocity vector.

Definition at line 167 of file Velocity.hpp.

References PhQ::DimensionalVector< Unit::Speed, double >::value, and PhQ::Vector< NumericType >::z().

Referenced by PhQ::Velocity< NumericType >::Create(), and PhQ::Velocity< NumericType >::Velocity().

◆ Zero()

template<typename NumericType = double>
static constexpr Velocity<NumericType> PhQ::Velocity< NumericType >::Zero ( )
inlinestaticconstexpr

Statically creates a velocity vector of zero.

Definition at line 126 of file Velocity.hpp.

References PhQ::Vector< NumericType >::Zero().

Member Data Documentation

◆ value

PhQ::Vector<double > PhQ::DimensionalVector< Unit::Speed , double >::value
protectedinherited

Value of this physical quantity expressed in its standard unit of measure.

Definition at line 217 of file DimensionalVector.hpp.


The documentation for this class was generated from the following files: