libstp
Robotics library for Botball
Loading...
Searching...
No Matches
libstp::foundation::Radians Struct Reference

#include <types.hpp>

Public Member Functions

constexpr Radians ()=default
constexpr Radians (double rad)
constexpr double to_deg () const
constexpr operator double () const
constexpr Radians operator- () const
constexpr Radians operator+ (Radians other) const
constexpr Radians operator- (Radians other) const

Static Public Member Functions

static constexpr Radians from_deg (double deg)

Public Attributes

double value {0.0}

Detailed Description

Strongly-typed angle in radians. Use Radians::from_deg() to convert from degrees.

Definition at line 99 of file types.hpp.

Constructor & Destructor Documentation

◆ Radians() [1/2]

libstp::foundation::Radians::Radians ( )
constexprdefault

◆ Radians() [2/2]

libstp::foundation::Radians::Radians ( double rad)
inlineexplicitconstexpr

Definition at line 103 of file types.hpp.

Member Function Documentation

◆ from_deg()

constexpr Radians libstp::foundation::Radians::from_deg ( double deg)
inlinestaticconstexpr

Definition at line 105 of file types.hpp.

◆ operator double()

libstp::foundation::Radians::operator double ( ) const
inlineconstexpr

Definition at line 113 of file types.hpp.

◆ operator+()

Radians libstp::foundation::Radians::operator+ ( Radians other) const
inlineconstexpr

Definition at line 116 of file types.hpp.

◆ operator-() [1/2]

Radians libstp::foundation::Radians::operator- ( ) const
inlineconstexpr

Definition at line 115 of file types.hpp.

◆ operator-() [2/2]

Radians libstp::foundation::Radians::operator- ( Radians other) const
inlineconstexpr

Definition at line 117 of file types.hpp.

◆ to_deg()

double libstp::foundation::Radians::to_deg ( ) const
inlineconstexpr

Definition at line 109 of file types.hpp.

Member Data Documentation

◆ value

double libstp::foundation::Radians::value {0.0}

Definition at line 100 of file types.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/raccoon-lib/raccoon-lib/modules/libstp-foundation/include/foundation/types.hpp