Flutter Impeller
impeller::Degrees Struct Reference

#include <scalar.h>

Public Member Functions

constexpr Degrees ()=default
 
constexpr Degrees (Scalar p_degrees)
 
constexpr operator Radians () const
 

Public Attributes

Scalar degrees = 0.0
 

Detailed Description

Definition at line 46 of file scalar.h.

Constructor & Destructor Documentation

◆ Degrees() [1/2]

constexpr impeller::Degrees::Degrees ( )
constexprdefault

◆ Degrees() [2/2]

constexpr impeller::Degrees::Degrees ( Scalar  p_degrees)
inlineexplicitconstexpr

Definition at line 51 of file scalar.h.

51 : degrees(p_degrees) {}

Member Function Documentation

◆ operator Radians()

constexpr impeller::Degrees::operator Radians ( ) const
inlineconstexpr

Definition at line 53 of file scalar.h.

53  {
54  return Radians{degrees * kPi / 180.0f};
55  };

References degrees, and impeller::kPi.

Member Data Documentation

◆ degrees

Scalar impeller::Degrees::degrees = 0.0

The documentation for this struct was generated from the following file:
impeller::Degrees::degrees
Scalar degrees
Definition: scalar.h:47
impeller::kPi
constexpr float kPi
Definition: constants.h:26