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 | Friends | List of all members
PhQ::PlanarDisplacement< NumericType > Class Template Reference

Two-dimensional Euclidean displacement vector in the XY plane. Contains two components in Cartesian coordinates: x and y. Displacement is not to be confused with position; for a two-dimensional Euclidean position vector in the XY plane, see PhQ::PlanarPosition. For a three-dimensional Euclidean displacement vector, see PhQ::Displacement. For scalar displacement components or for the magnitude of a displacement vector, see PhQ::Length. More...

#include "PlanarDisplacement.hpp"

Public Member Functions

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

Friends

template<typename OtherNumericType >
class PlanarPosition
 

Detailed Description

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

Two-dimensional Euclidean displacement vector in the XY plane. Contains two components in Cartesian coordinates: x and y. Displacement is not to be confused with position; for a two-dimensional Euclidean position vector in the XY plane, see PhQ::PlanarPosition. For a three-dimensional Euclidean displacement vector, see PhQ::Displacement. For scalar displacement components or for the magnitude of a displacement vector, see PhQ::Length.

Definition at line 64 of file PlanarDisplacement.hpp.

Constructor & Destructor Documentation

◆ PlanarDisplacement() [1/12]

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

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

◆ PlanarDisplacement() [2/12]

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

Constructor. Constructs a planar displacement vector with a given value expressed in a given length unit.

Definition at line 72 of file PlanarDisplacement.hpp.

◆ PlanarDisplacement() [3/12]

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

Constructor. Constructs a planar displacement vector from a given set of length components.

Definition at line 77 of file PlanarDisplacement.hpp.

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

◆ PlanarDisplacement() [4/12]

template<typename NumericType = double>
constexpr PhQ::PlanarDisplacement< NumericType >::PlanarDisplacement ( const Length< NumericType > &  length,
const PlanarDirection< NumericType > &  planar_direction 
)
inlineconstexpr

Constructor. Constructs a planar displacement vector from a given length and planar direction.

Definition at line 82 of file PlanarDisplacement.hpp.

◆ PlanarDisplacement() [5/12]

template<typename NumericType >
constexpr PhQ::PlanarDisplacement< NumericType >::PlanarDisplacement ( const Displacement< NumericType > &  displacement)
inlineexplicitconstexpr

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

Definition at line 303 of file Displacement.hpp.

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

◆ PlanarDisplacement() [6/12]

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

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

Definition at line 302 of file PlanarVelocity.hpp.

◆ PlanarDisplacement() [7/12]

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

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

Definition at line 307 of file PlanarVelocity.hpp.

◆ PlanarDisplacement() [8/12]

template<typename NumericType >
constexpr PhQ::PlanarDisplacement< NumericType >::PlanarDisplacement ( const PlanarPosition< NumericType > &  planar_position)
inlineexplicitconstexpr

Constructor. Constructs a planar displacement vector between a given planar position vector and the origin.

Definition at line 289 of file PlanarPosition.hpp.

◆ ~PlanarDisplacement()

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

Destructor. Destroys this planar displacement vector.

◆ PlanarDisplacement() [9/12]

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

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

◆ PlanarDisplacement() [10/12]

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

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

Definition at line 112 of file PlanarDisplacement.hpp.

◆ PlanarDisplacement() [11/12]

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

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

◆ PlanarDisplacement() [12/12]

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

Constructor. Constructs a planar displacement vector with a given value expressed in the standard length unit.

Definition at line 249 of file PlanarDisplacement.hpp.

Member Function Documentation

◆ Angle()

template<typename NumericType = double>
PhQ::Angle<NumericType> PhQ::PlanarDisplacement< NumericType >::Angle ( const PlanarDisplacement< NumericType > &  planar_displacement) const
inline

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

Definition at line 197 of file PlanarDisplacement.hpp.

◆ Create() [1/3]

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

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

Definition at line 145 of file PlanarDisplacement.hpp.

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

◆ Create() [2/3]

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

Statically creates a planar displacement vector with a given value expressed in a given length unit.

Definition at line 165 of file PlanarDisplacement.hpp.

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

◆ Create() [3/3]

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

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

Definition at line 155 of file PlanarDisplacement.hpp.

◆ Dimensions()

static constexpr const PhQ::Dimensions& PhQ::DimensionalPlanarVector< Unit::Length , 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::Length , 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::Length , double >::JSON ( const Unit::Length  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>
Length<NumericType> PhQ::PlanarDisplacement< NumericType >::Magnitude ( ) const
inline

Returns the magnitude of this planar displacement vector.

Definition at line 187 of file PlanarDisplacement.hpp.

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

◆ MutableValue()

constexpr PhQ::PlanarVector<double >& PhQ::DimensionalPlanarVector< Unit::Length , 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/2]

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

Definition at line 336 of file PlanarVelocity.hpp.

◆ operator*() [2/2]

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

◆ operator*=()

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

◆ operator+() [1/2]

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

◆ operator+() [2/2]

template<typename NumericType >
constexpr PlanarPosition< NumericType > PhQ::PlanarDisplacement< NumericType >::operator+ ( const PlanarPosition< NumericType > &  planar_position) const
inlineconstexpr

◆ operator+=()

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

◆ operator-() [1/2]

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

◆ operator-() [2/2]

template<typename NumericType >
constexpr PlanarPosition< NumericType > PhQ::PlanarDisplacement< NumericType >::operator- ( const PlanarPosition< NumericType > &  planar_position) const
inlineconstexpr

◆ operator-=()

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

◆ operator/() [1/2]

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

◆ operator/() [2/2]

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

Definition at line 342 of file PlanarVelocity.hpp.

◆ operator/=()

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

◆ operator=() [1/3]

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

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

◆ operator=() [2/3]

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

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

Definition at line 126 of file PlanarDisplacement.hpp.

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

◆ operator=() [3/3]

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

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

◆ PlanarDirection()

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

Returns the planar direction of this planar displacement vector.

Definition at line 192 of file PlanarDisplacement.hpp.

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

◆ Print() [1/2]

std::string PhQ::DimensionalPlanarVector< Unit::Length , 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::Length , double >::Print ( const Unit::Length  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::Length , 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::Length , 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::Length PhQ::DimensionalPlanarVector< Unit::Length , 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::Length , 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::Length , double >::Value ( const Unit::Length  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 Length<NumericType> PhQ::PlanarDisplacement< NumericType >::x ( ) const
inlineconstexprnoexcept

◆ XML() [1/2]

std::string PhQ::DimensionalPlanarVector< Unit::Length , 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::Length , double >::XML ( const Unit::Length  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 Length<NumericType> PhQ::PlanarDisplacement< NumericType >::y ( ) const
inlineconstexprnoexcept

◆ YAML() [1/2]

std::string PhQ::DimensionalPlanarVector< Unit::Length , 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::Length , double >::YAML ( const Unit::Length  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.

◆ z()

template<typename NumericType = double>
constexpr Length<NumericType> PhQ::PlanarDisplacement< NumericType >::z ( ) const
inlineconstexprnoexcept

Returns the z Cartesian component of this planar displacement vector.

Definition at line 182 of file PlanarDisplacement.hpp.

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

◆ Zero()

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

Statically creates a planar displacement vector of zero.

Definition at line 138 of file PlanarDisplacement.hpp.

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

Friends And Related Function Documentation

◆ PlanarPosition

template<typename NumericType = double>
template<typename OtherNumericType >
friend class PlanarPosition
friend

Definition at line 253 of file PlanarDisplacement.hpp.

Member Data Documentation

◆ value

PhQ::PlanarVector<double > PhQ::DimensionalPlanarVector< Unit::Length , 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: