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::PlanarVelocity< NumericType > Class Template Reference

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

#include "PlanarVelocity.hpp"

Public Member Functions

 PlanarVelocity ()=default
 Default constructor. Constructs a planar velocity vector with an uninitialized value. More...
 
 PlanarVelocity (const PlanarVector< NumericType > &value, const Unit::Speed unit)
 Constructor. Constructs a planar velocity vector with a given value expressed in a given speed unit. More...
 
 PlanarVelocity (const Speed< NumericType > &x, const Speed< NumericType > &y)
 Constructor. Constructs a planar velocity vector from a given set of speed components. More...
 
constexpr PlanarVelocity (const Speed< NumericType > &speed, const PlanarDirection< NumericType > &planar_direction)
 Constructor. Constructs a planar velocity vector from a given speed and planar direction. More...
 
constexpr PlanarVelocity (const Velocity< NumericType > &velocity)
 Constructor. Constructs a planar velocity vector from a given velocity vector by projecting the velocity vector onto the XY plane. More...
 
constexpr PlanarVelocity (const PlanarDisplacement< NumericType > &planar_displacement, const Time< NumericType > &time)
 Constructor. Constructs a planar velocity vector from a given planar displacement vector and time using the definition of velocity. More...
 
constexpr PlanarVelocity (const PlanarDisplacement< NumericType > &planar_displacement, const Frequency< NumericType > &frequency)
 Constructor. Constructs a planar velocity vector from a given planar displacement vector and frequency using the definition of velocity. More...
 
constexpr PlanarVelocity (const PlanarAcceleration< NumericType > &planar_acceleration, const Time< NumericType > &time)
 Constructor. Constructs a planar velocity vector from a given planar acceleration vector and time using the definition of acceleration. More...
 
constexpr PlanarVelocity (const PlanarAcceleration< NumericType > &planar_acceleration, const Frequency< NumericType > &frequency)
 Constructor. Constructs a planar velocity vector from a given planar acceleration vector and frequency using the definition of acceleration. More...
 
 ~PlanarVelocity () noexcept=default
 Destructor. Destroys this planar velocity vector. More...
 
constexpr PlanarVelocity (const PlanarVelocity< NumericType > &other)=default
 Copy constructor. Constructs a planar velocity vector by copying another one. More...
 
template<typename OtherNumericType >
constexpr PlanarVelocity (const PlanarVelocity< OtherNumericType > &other)
 Copy constructor. Constructs a planar velocity by copying another one. More...
 
constexpr PlanarVelocity (PlanarVelocity< NumericType > &&other) noexcept=default
 Move constructor. Constructs a planar velocity vector by moving another one. More...
 
constexpr PlanarVelocity< NumericType > & operator= (const PlanarVelocity< NumericType > &other)=default
 Copy assignment operator. Assigns this planar velocity vector by copying another one. More...
 
template<typename OtherNumericType >
constexpr PlanarVelocity< NumericType > & operator= (const PlanarVelocity< OtherNumericType > &other)
 Copy assignment operator. Assigns this planar velocity by copying another one. More...
 
constexpr PlanarVelocity< NumericType > & operator= (PlanarVelocity< NumericType > &&other) noexcept=default
 Move assignment operator. Assigns this planar velocity vector by moving another one. More...
 
constexpr Speed< NumericType > x () const noexcept
 Returns the x Cartesian component of this planar velocity vector. More...
 
constexpr Speed< NumericType > y () const noexcept
 Returns the y Cartesian component of this planar velocity vector. More...
 
Speed< NumericType > Magnitude () const
 Returns the magnitude of this planar velocity vector. More...
 
PhQ::PlanarDirection< NumericType > PlanarDirection () const
 Returns the planar direction of this planar velocity vector. More...
 
PhQ::Angle< NumericType > Angle (const PlanarVelocity< NumericType > &planar_velocity) const
 Returns the angle between this planar velocity vector and another one. More...
 
constexpr PlanarVelocity< NumericType > operator+ (const PlanarVelocity< NumericType > &planar_velocity) const
 
constexpr PlanarVelocity< NumericType > operator- (const PlanarVelocity< NumericType > &planar_velocity) const
 
constexpr PlanarVelocity< NumericType > operator* (const NumericType number) const
 
constexpr PlanarDisplacement< NumericType > operator* (const Time< NumericType > &time) const
 
constexpr PlanarAcceleration< NumericType > operator* (const Frequency< NumericType > &frequency) const
 
constexpr PlanarVelocity< NumericType > operator/ (const NumericType number) const
 
constexpr PlanarAcceleration< NumericType > operator/ (const Time< NumericType > &time) const
 
constexpr PlanarDisplacement< NumericType > operator/ (const Frequency< NumericType > &frequency) const
 
constexpr void operator+= (const PlanarVelocity< NumericType > &planar_velocity) noexcept
 
constexpr void operator-= (const PlanarVelocity< NumericType > &planar_velocity) noexcept
 
constexpr void operator*= (const NumericType number) noexcept
 
constexpr void operator/= (const NumericType number) noexcept
 
constexpr const PhQ::PlanarVector< double > & Value () const noexcept
 Value of this physical quantity expressed in its standard unit of measure. More...
 
PhQ::PlanarVector< double > Value (const Unit::Speed unit) const
 Value of this physical quantity expressed in a given unit of measure. More...
 
constexpr PhQ::PlanarVector< 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::PlanarVector< 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::PlanarVector< 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 PlanarVelocity< NumericType > Zero ()
 Statically creates a planar velocity vector of zero. More...
 
template<Unit::Speed Unit>
static constexpr PlanarVelocity< NumericType > Create (const NumericType x, const NumericType y)
 Statically creates a planar velocity vector from the given x and y Cartesian components expressed in a given speed unit. More...
 
template<Unit::Speed Unit>
static constexpr PlanarVelocity< NumericType > Create (const std::array< NumericType, 2 > &x_y)
 Statically creates a planar velocity vector from the given x and y Cartesian components expressed in a given speed unit. More...
 
template<Unit::Speed Unit>
static constexpr PlanarVelocity< NumericType > Create (const PlanarVector< NumericType > &value)
 Statically creates a planar 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::PlanarVector< double > value
 Value of this physical quantity expressed in its standard unit of measure. More...
 

Private Member Functions

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

Detailed Description

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

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

Definition at line 54 of file PlanarVelocity.hpp.

Constructor & Destructor Documentation

◆ PlanarVelocity() [1/13]

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

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

◆ PlanarVelocity() [2/13]

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

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

Definition at line 61 of file PlanarVelocity.hpp.

◆ PlanarVelocity() [3/13]

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

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

Definition at line 65 of file PlanarVelocity.hpp.

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

◆ PlanarVelocity() [4/13]

template<typename NumericType = double>
constexpr PhQ::PlanarVelocity< NumericType >::PlanarVelocity ( const Speed< NumericType > &  speed,
const PlanarDirection< NumericType > &  planar_direction 
)
inlineconstexpr

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

Definition at line 70 of file PlanarVelocity.hpp.

◆ PlanarVelocity() [5/13]

template<typename NumericType >
constexpr PhQ::PlanarVelocity< NumericType >::PlanarVelocity ( const Velocity< NumericType > &  velocity)
inlineexplicitconstexpr

Constructor. Constructs a planar velocity vector from a given velocity vector by projecting the velocity vector onto the XY plane.

Definition at line 305 of file Velocity.hpp.

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

◆ PlanarVelocity() [6/13]

template<typename NumericType = double>
constexpr PhQ::PlanarVelocity< NumericType >::PlanarVelocity ( const PlanarDisplacement< NumericType > &  planar_displacement,
const Time< NumericType > &  time 
)
inlineconstexpr

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

Definition at line 80 of file PlanarVelocity.hpp.

◆ PlanarVelocity() [7/13]

template<typename NumericType = double>
constexpr PhQ::PlanarVelocity< NumericType >::PlanarVelocity ( const PlanarDisplacement< NumericType > &  planar_displacement,
const Frequency< NumericType > &  frequency 
)
inlineconstexpr

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

Definition at line 86 of file PlanarVelocity.hpp.

◆ PlanarVelocity() [8/13]

template<typename NumericType >
constexpr PhQ::PlanarVelocity< NumericType >::PlanarVelocity ( const PlanarAcceleration< NumericType > &  planar_acceleration,
const Time< NumericType > &  time 
)
inlineconstexpr

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

Definition at line 287 of file PlanarAcceleration.hpp.

◆ PlanarVelocity() [9/13]

template<typename NumericType >
constexpr PhQ::PlanarVelocity< NumericType >::PlanarVelocity ( const PlanarAcceleration< NumericType > &  planar_acceleration,
const Frequency< NumericType > &  frequency 
)
inlineconstexpr

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

Definition at line 292 of file PlanarAcceleration.hpp.

◆ ~PlanarVelocity()

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

Destructor. Destroys this planar velocity vector.

◆ PlanarVelocity() [10/13]

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

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

◆ PlanarVelocity() [11/13]

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

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

Definition at line 108 of file PlanarVelocity.hpp.

◆ PlanarVelocity() [12/13]

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

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

◆ PlanarVelocity() [13/13]

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

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

Definition at line 238 of file PlanarVelocity.hpp.

Member Function Documentation

◆ Angle()

template<typename NumericType = double>
PhQ::Angle<NumericType> PhQ::PlanarVelocity< NumericType >::Angle ( const PlanarVelocity< NumericType > &  planar_velocity) const
inline

Returns the angle between this planar velocity vector and another one.

Definition at line 182 of file PlanarVelocity.hpp.

◆ Create() [1/3]

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

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

Definition at line 137 of file PlanarVelocity.hpp.

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

◆ Create() [2/3]

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

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

Definition at line 155 of file PlanarVelocity.hpp.

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

◆ Create() [3/3]

template<typename NumericType = double>
template<Unit::Speed Unit>
static constexpr PlanarVelocity<NumericType> PhQ::PlanarVelocity< NumericType >::Create ( const std::array< NumericType, 2 > &  x_y)
inlinestaticconstexpr

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

Definition at line 146 of file PlanarVelocity.hpp.

◆ Dimensions()

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

Physical dimension set of this physical quantity.

Definition at line 50 of file DimensionalPlanarVector.hpp.

◆ JSON() [1/2]

std::string PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ JSON() [2/2]

std::string PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ Magnitude()

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

Returns the magnitude of this planar velocity vector.

Definition at line 172 of file PlanarVelocity.hpp.

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

◆ MutableValue()

constexpr PhQ::PlanarVector<double >& PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ operator*() [1/3]

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

Definition at line 316 of file PlanarAcceleration.hpp.

◆ operator*() [2/3]

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

◆ operator*() [3/3]

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

Definition at line 201 of file PlanarVelocity.hpp.

◆ operator*=()

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

◆ operator+()

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

◆ operator+=()

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

◆ operator-()

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

◆ operator-=()

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

◆ operator/() [1/3]

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

Definition at line 214 of file PlanarVelocity.hpp.

◆ operator/() [2/3]

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

◆ operator/() [3/3]

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

Definition at line 328 of file PlanarAcceleration.hpp.

◆ operator/=()

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

◆ operator=() [1/3]

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

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

◆ operator=() [2/3]

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

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

Definition at line 120 of file PlanarVelocity.hpp.

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

◆ operator=() [3/3]

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

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

◆ PlanarDirection()

template<typename NumericType = double>
PhQ::PlanarDirection<NumericType> PhQ::PlanarVelocity< NumericType >::PlanarDirection ( ) const
inline

Returns the planar direction of this planar velocity vector.

Definition at line 177 of file PlanarVelocity.hpp.

References PhQ::PlanarVector< NumericType >::PlanarDirection(), and PhQ::DimensionalPlanarVector< Unit::Speed, double >::value.

◆ Print() [1/2]

std::string PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ Print() [2/2]

std::string PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ SetValue()

constexpr void PhQ::DimensionalPlanarVector< Unit::Speed , double >::SetValue ( const PhQ::PlanarVector< 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 DimensionalPlanarVector.hpp.

◆ StaticValue()

constexpr PhQ::PlanarVector<double > PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ Unit()

static constexpr Unit::Speed PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ Value() [1/2]

constexpr const PhQ::PlanarVector<double >& PhQ::DimensionalPlanarVector< Unit::Speed , double >::Value ( ) const
inlineconstexprnoexceptinherited

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

Definition at line 61 of file DimensionalPlanarVector.hpp.

◆ Value() [2/2]

PhQ::PlanarVector<double > PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ x()

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

◆ XML() [1/2]

std::string PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ XML() [2/2]

std::string PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ y()

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

◆ YAML() [1/2]

std::string PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ YAML() [2/2]

std::string PhQ::DimensionalPlanarVector< 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 DimensionalPlanarVector.hpp.

◆ Zero()

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

Statically creates a planar velocity vector of zero.

Definition at line 130 of file PlanarVelocity.hpp.

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

Member Data Documentation

◆ value

PhQ::PlanarVector<double > PhQ::DimensionalPlanarVector< Unit::Speed , double >::value
protectedinherited

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

Definition at line 222 of file DimensionalPlanarVector.hpp.


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