Euphoria
eu::An Struct Reference

An angle in both degrees and radians. More...

Public Member Functions

void wrap ()
constexpr float as_degrees () const
constexpr float as_radians () const
constexpr float from_percent_of_360 () const
An get_wrapped () const
void operator+= (const An &rhs)
void operator-= (const An &rhs)
void operator*= (float rhs)
void operator/= (float rhs)
An operator- () const

Static Public Member Functions

static constexpr An from_degrees (float degrees)
static constexpr An from_radians (float radians)
static constexpr An from_percent_of_360 (float percent)
static constexpr An from_percent_of_180 (float percent)

Detailed Description

An angle in both degrees and radians.

Definition at line 12 of file angle.h.

Member Function Documentation

◆ as_degrees()

float eu::An::as_degrees ( ) const
inlinenodiscardconstexpr

Definition at line 43 of file angle.h.

◆ as_radians()

float eu::An::as_radians ( ) const
inlinenodiscardconstexpr

Definition at line 49 of file angle.h.

◆ from_degrees()

constexpr An eu::An::from_degrees ( float degrees)
inlinestaticnodiscardconstexpr

Definition at line 15 of file angle.h.

◆ from_percent_of_180()

constexpr An eu::An::from_percent_of_180 ( float percent)
inlinestaticnodiscardconstexpr

Definition at line 33 of file angle.h.

◆ from_percent_of_360() [1/2]

float eu::An::from_percent_of_360 ( ) const
inlinenodiscardconstexpr

Definition at line 55 of file angle.h.

◆ from_percent_of_360() [2/2]

constexpr An eu::An::from_percent_of_360 ( float percent)
inlinestaticnodiscardconstexpr

Definition at line 27 of file angle.h.

◆ from_radians()

constexpr An eu::An::from_radians ( float radians)
inlinestaticnodiscardconstexpr

Definition at line 21 of file angle.h.

◆ get_wrapped()

An eu::An::get_wrapped ( ) const
nodiscard

◆ operator*=()

void eu::An::operator*= ( float rhs)

◆ operator+=()

void eu::An::operator+= ( const An & rhs)

◆ operator-()

An eu::An::operator- ( ) const

◆ operator-=()

void eu::An::operator-= ( const An & rhs)

◆ operator/=()

void eu::An::operator/= ( float rhs)

◆ wrap()

void eu::An::wrap ( )

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