| Flutter Impeller |

Public Member Functions | Public Attributes | List of all members
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 43 of file scalar.h.

## Constructor & Destructor Documentation

## ◆ Degrees() [1/2]

constexpr impeller::Degrees::Degrees | ( |  | ) |
| constexpr default

## ◆ Degrees() [2/2]

constexpr impeller::Degrees::Degrees | ( | Scalar | p_degrees | ) |
| inline explicit constexpr

Definition at line 48 of file scalar.h.

48 : degrees(p_degrees) {}

## Member Function Documentation

## ◆ operator Radians()

constexpr impeller::Degrees::operator Radians | ( |  | ) | const
| inline constexpr

Definition at line 50 of file scalar.h.

50 {
51 return Radians{degrees * kPi / 180.0f};
52 };

References degrees, and impeller::kPi.

## Member Data Documentation

## ◆ degrees

Scalar impeller::Degrees::degrees = 0.0

Definition at line 44 of file scalar.h.

Referenced by operator Radians(), impeller::SweepGradientContents::SetCenterAndAngles(), and impeller::testing::TEST_P().

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

- impeller/geometry/scalar.h

impeller::Degrees::degrees
Scalar degrees
Definition: scalar.h:44
impeller::kPi
constexpr float kPi
Definition: constants.h:25