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

56 : degrees(p_degrees) {}

## Member Function Documentation

## ◆ operator Radians()

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

Definition at line 58 of file scalar.h.

58 {
59 return Radians{degrees * kPi / 180.0f};
60 };

References degrees, and impeller::kPi.

## Member Data Documentation

## ◆ degrees

Scalar impeller::Degrees::degrees = 0.0

Definition at line 52 of file scalar.h.

Referenced by impeller::interop::PathBuilder::AddArc(), operator Radians(), impeller::interop::DisplayListBuilder::Rotate(), impeller::SweepGradientContents::SetCenterAndAngles(), impeller::testing::TEST(), 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:52
impeller::kPi
constexpr float kPi
Definition: constants.h:26