mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | List of all members
mf::angle Struct Reference

Angle, represented in radiants. More...

#include <angle.h>

Public Member Functions

 angle ()=default
 
 angle (float r)
 
 angle (const angle &)=default
 
const float & get_radiants () const
 
float get_degrees () const
 
void set_radiants (float r)
 
void set_degrees (float d)
 
 operator float & ()
 
 operator const float & () const
 
angleoperator= (float r)
 
angleoperator= (const angle &)=default
 
bool operator== (angle a) const
 
bool operator!= (angle a) const
 

Static Public Member Functions

static angle degrees (float d)
 
static angle radiants (float r)
 
static angle smallest_between (angle a, angle b)
 

Detailed Description

Angle, represented in radiants.

Defines I/O in degrees, and conversion. Provides unambiguity in what angles mean.

Constructor & Destructor Documentation

mf::angle::angle ( )
default
mf::angle::angle ( float  r)
inline
mf::angle::angle ( const angle )
default

Member Function Documentation

static angle mf::angle::degrees ( float  d)
inlinestatic
float mf::angle::get_degrees ( ) const
inline
const float& mf::angle::get_radiants ( ) const
inline
mf::angle::operator const float & ( ) const
inline
mf::angle::operator float & ( )
inline
bool mf::angle::operator!= ( angle  a) const
inline
angle& mf::angle::operator= ( float  r)
inline
angle& mf::angle::operator= ( const angle )
default
bool mf::angle::operator== ( angle  a) const
inline
static angle mf::angle::radiants ( float  r)
inlinestatic
void mf::angle::set_degrees ( float  d)
inline
void mf::angle::set_radiants ( float  r)
inline
angle mf::angle::smallest_between ( angle  a,
angle  b 
)
static

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