Euphoria
eu::Angle Struct Reference

#include <angle.h>

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Definition at line 13 of file angle.h.

Member Function Documentation

◆ as_degrees()

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

Definition at line 44 of file angle.h.

◆ as_radians()

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

Definition at line 50 of file angle.h.

◆ from_degrees()

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

Definition at line 16 of file angle.h.

◆ from_percent_of_180()

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

Definition at line 34 of file angle.h.

◆ from_percent_of_360() [1/2]

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

Definition at line 56 of file angle.h.

◆ from_percent_of_360() [2/2]

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

Definition at line 28 of file angle.h.

◆ from_radians()

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

Definition at line 22 of file angle.h.

◆ get_wrapped()

Angle eu::Angle::get_wrapped ( ) const

Definition at line 114 of file angle.cc.

◆ operator*=()

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

Definition at line 40 of file angle.cc.

◆ operator+=()

void eu::Angle::operator+= ( const Angle rhs)

Definition at line 26 of file angle.cc.

◆ operator-()

Angle eu::Angle::operator- ( ) const

Definition at line 54 of file angle.cc.

◆ operator-=()

void eu::Angle::operator-= ( const Angle rhs)

Definition at line 33 of file angle.cc.

◆ operator/=()

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

Definition at line 47 of file angle.cc.

◆ wrap()

void eu::Angle::wrap ( )

Definition at line 19 of file angle.cc.


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