Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
psen_scan_v2_standalone::util::TenthOfDegree Class Reference

Helper class representing angles in tenth of degree. More...

#include <tenth_of_degree.h>

Public Member Functions

constexpr bool operator!= (const TenthOfDegree &rhs) const
 
constexpr TenthOfDegreeoperator* (const TenthOfDegree &rhs)
 
constexpr TenthOfDegree operator* (const int &rhs) const
 
constexpr TenthOfDegree operator* (const size_t &rhs) const
 
constexpr TenthOfDegreeoperator* (const int &rhs)
 
constexpr TenthOfDegreeoperator* (const size_t &rhs)
 
constexpr TenthOfDegree operator+ (const TenthOfDegree &rhs) const
 
constexpr TenthOfDegreeoperator+ (const TenthOfDegree &rhs)
 
constexpr TenthOfDegreeoperator+= (const TenthOfDegree &rhs)
 
constexpr TenthOfDegree operator- (const TenthOfDegree &rhs) const
 
TenthOfDegreeoperator- (const TenthOfDegree &rhs)
 
constexpr TenthOfDegree operator/ (const int &rhs) const
 
constexpr TenthOfDegreeoperator/ (const int &rhs)
 
constexpr TenthOfDegree operator/ (const TenthOfDegree &rhs) const
 
constexpr bool operator< (const TenthOfDegree &rhs) const
 
constexpr bool operator<= (const TenthOfDegree &rhs) const
 
constexpr bool operator== (const TenthOfDegree &rhs) const
 
constexpr bool operator> (const TenthOfDegree &rhs) const
 
constexpr bool operator>= (const TenthOfDegree &rhs) const
 
constexpr TenthOfDegree ()=default
 
constexpr TenthOfDegree (const int16_t &tenth_of_degree)
 
constexpr double toRad () const
 
constexpr int16_t value () const
 

Static Public Member Functions

static TenthOfDegree fromRad (const double &angle_in_rad)
 

Private Attributes

int16_t tenth_of_degree_ { 0 }
 

Detailed Description

Helper class representing angles in tenth of degree.

There are different representations for angles on the scanner side and the api.

This class simplifies/improves the handling of angles. It provides conversions from/to radian angles.

Definition at line 34 of file tenth_of_degree.h.

Constructor & Destructor Documentation

◆ TenthOfDegree() [1/2]

constexpr psen_scan_v2_standalone::util::TenthOfDegree::TenthOfDegree ( )
explicitdefault

◆ TenthOfDegree() [2/2]

constexpr psen_scan_v2_standalone::util::TenthOfDegree::TenthOfDegree ( const int16_t &  tenth_of_degree)
inlineexplicit

Definition at line 45 of file tenth_of_degree.h.

Member Function Documentation

◆ fromRad()

static TenthOfDegree psen_scan_v2_standalone::util::TenthOfDegree::fromRad ( const double &  angle_in_rad)
inlinestatic

Definition at line 37 of file tenth_of_degree.h.

◆ operator!=()

constexpr bool psen_scan_v2_standalone::util::TenthOfDegree::operator!= ( const TenthOfDegree rhs) const
inline

Definition at line 136 of file tenth_of_degree.h.

◆ operator*() [1/5]

constexpr TenthOfDegree& psen_scan_v2_standalone::util::TenthOfDegree::operator* ( const TenthOfDegree rhs)
inline

Definition at line 59 of file tenth_of_degree.h.

◆ operator*() [2/5]

constexpr TenthOfDegree psen_scan_v2_standalone::util::TenthOfDegree::operator* ( const int &  rhs) const
inline

Definition at line 65 of file tenth_of_degree.h.

◆ operator*() [3/5]

constexpr TenthOfDegree psen_scan_v2_standalone::util::TenthOfDegree::operator* ( const size_t &  rhs) const
inline

Definition at line 70 of file tenth_of_degree.h.

◆ operator*() [4/5]

constexpr TenthOfDegree& psen_scan_v2_standalone::util::TenthOfDegree::operator* ( const int &  rhs)
inline

Definition at line 75 of file tenth_of_degree.h.

◆ operator*() [5/5]

constexpr TenthOfDegree& psen_scan_v2_standalone::util::TenthOfDegree::operator* ( const size_t &  rhs)
inline

Definition at line 81 of file tenth_of_degree.h.

◆ operator+() [1/2]

constexpr TenthOfDegree psen_scan_v2_standalone::util::TenthOfDegree::operator+ ( const TenthOfDegree rhs) const
inline

Definition at line 103 of file tenth_of_degree.h.

◆ operator+() [2/2]

constexpr TenthOfDegree& psen_scan_v2_standalone::util::TenthOfDegree::operator+ ( const TenthOfDegree rhs)
inline

Definition at line 108 of file tenth_of_degree.h.

◆ operator+=()

constexpr TenthOfDegree& psen_scan_v2_standalone::util::TenthOfDegree::operator+= ( const TenthOfDegree rhs)
inline

Definition at line 114 of file tenth_of_degree.h.

◆ operator-() [1/2]

constexpr TenthOfDegree psen_scan_v2_standalone::util::TenthOfDegree::operator- ( const TenthOfDegree rhs) const
inline

Definition at line 120 of file tenth_of_degree.h.

◆ operator-() [2/2]

TenthOfDegree& psen_scan_v2_standalone::util::TenthOfDegree::operator- ( const TenthOfDegree rhs)
inline

Definition at line 125 of file tenth_of_degree.h.

◆ operator/() [1/3]

constexpr TenthOfDegree psen_scan_v2_standalone::util::TenthOfDegree::operator/ ( const int &  rhs) const
inline

Definition at line 87 of file tenth_of_degree.h.

◆ operator/() [2/3]

constexpr TenthOfDegree& psen_scan_v2_standalone::util::TenthOfDegree::operator/ ( const int &  rhs)
inline

Definition at line 92 of file tenth_of_degree.h.

◆ operator/() [3/3]

constexpr TenthOfDegree psen_scan_v2_standalone::util::TenthOfDegree::operator/ ( const TenthOfDegree rhs) const
inline

Definition at line 98 of file tenth_of_degree.h.

◆ operator<()

constexpr bool psen_scan_v2_standalone::util::TenthOfDegree::operator< ( const TenthOfDegree rhs) const
inline

Definition at line 156 of file tenth_of_degree.h.

◆ operator<=()

constexpr bool psen_scan_v2_standalone::util::TenthOfDegree::operator<= ( const TenthOfDegree rhs) const
inline

Definition at line 146 of file tenth_of_degree.h.

◆ operator==()

constexpr bool psen_scan_v2_standalone::util::TenthOfDegree::operator== ( const TenthOfDegree rhs) const
inline

Definition at line 131 of file tenth_of_degree.h.

◆ operator>()

constexpr bool psen_scan_v2_standalone::util::TenthOfDegree::operator> ( const TenthOfDegree rhs) const
inline

Definition at line 151 of file tenth_of_degree.h.

◆ operator>=()

constexpr bool psen_scan_v2_standalone::util::TenthOfDegree::operator>= ( const TenthOfDegree rhs) const
inline

Definition at line 141 of file tenth_of_degree.h.

◆ toRad()

constexpr double psen_scan_v2_standalone::util::TenthOfDegree::toRad ( ) const
inline

Definition at line 54 of file tenth_of_degree.h.

◆ value()

constexpr int16_t psen_scan_v2_standalone::util::TenthOfDegree::value ( ) const
inline

Definition at line 49 of file tenth_of_degree.h.

Member Data Documentation

◆ tenth_of_degree_

int16_t psen_scan_v2_standalone::util::TenthOfDegree::tenth_of_degree_ { 0 }
private

Definition at line 162 of file tenth_of_degree.h.


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


psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Nov 5 2022 02:13:36