Euphoria
Public Member Functions | Static Public Member Functions | List of all members
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()

constexpr float eu::An::as_degrees ( ) const
inlineconstexpr

Definition at line 43 of file angle.h.

◆ as_radians()

constexpr float eu::An::as_radians ( ) const
inlineconstexpr

Definition at line 49 of file angle.h.

◆ from_degrees()

static constexpr An eu::An::from_degrees ( float  degrees)
inlinestaticconstexpr

Definition at line 15 of file angle.h.

◆ from_percent_of_180()

static constexpr An eu::An::from_percent_of_180 ( float  percent)
inlinestaticconstexpr

Definition at line 33 of file angle.h.

◆ from_percent_of_360() [1/2]

constexpr float eu::An::from_percent_of_360 ( ) const
inlineconstexpr

Definition at line 55 of file angle.h.

◆ from_percent_of_360() [2/2]

static constexpr An eu::An::from_percent_of_360 ( float  percent)
inlinestaticconstexpr

Definition at line 27 of file angle.h.

◆ from_radians()

static constexpr An eu::An::from_radians ( float  radians)
inlinestaticconstexpr

Definition at line 21 of file angle.h.

◆ get_wrapped()

An eu::An::get_wrapped ( ) const

◆ 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: