| 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 46 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 51 of file scalar.h.

51 : degrees(p_degrees) {}

## Member Function Documentation

## ◆ operator Radians()

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

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

Definition at line 47 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:47
impeller::kPi
constexpr float kPi
Definition: constants.h:26