GPR5100 - Rollback
Loading...
Searching...
No Matches
Public Member Functions | List of all members
core::Degree Class Reference

Degree is an utility class that describes degree angles (0 to 360). It can be easily converted to Radian with conversion constructor. It can be used with trigonometric functions (Sin, Cos, Tan) More...

#include <angle.h>

Public Member Functions

constexpr Degree (float value)
 
constexpr Degree (const Radian &angle)
 Conversion constructor that implicitly converts Radian to Degree. More...
 
constexpr float value () const
 
constexpr Degree operator+ (Degree angle) const
 
constexpr Degreeoperator+= (Degree angle)
 
constexpr Degree operator- (Degree angle) const
 
constexpr Degreeoperator-= (Degree angle)
 
constexpr Degree operator* (float value) const
 
constexpr Degree operator/ (float value) const
 
constexpr Degree operator- () const
 

Detailed Description

Degree is an utility class that describes degree angles (0 to 360). It can be easily converted to Radian with conversion constructor. It can be used with trigonometric functions (Sin, Cos, Tan)

Constructor & Destructor Documentation

◆ Degree()

constexpr core::Degree::Degree ( const Radian angle)
inlineconstexpr

Conversion constructor that implicitly converts Radian to Degree.

Parameters
angleis the radian angle to be converted to Degree

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