Flutter Engine
The Flutter Engine
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 ( )
constexprdefault

◆ Degrees() [2/2]

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

Definition at line 51 of file scalar.h.

51: degrees(p_degrees) {}
Scalar degrees
Definition: scalar.h:47

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 };
constexpr float kPi
Definition: constants.h:26

Member Data Documentation

◆ degrees

Scalar impeller::Degrees::degrees = 0.0

Definition at line 47 of file scalar.h.


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