raylib-cpp
C++ object-oriented wrapper library for raylib.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
raylib::Radian Class Reference

Radian type (allows automatic worry free conversion between radians and degrees) More...

#include <RadiansDegrees.hpp>

Public Member Functions

 Radian (const Degree d)
 
 Radian (const float radian)
 
 Radian (const Radian &other)
 
float DegreeValue () const
 
 operator float () const
 
Radian operator* (const Radian other) const
 
Radianoperator*= (const Radian other)
 
Radian operator+ (const Radian other) const
 
Radianoperator+= (const Radian other)
 
Radian operator- (const Radian other) const
 
Radianoperator-= (const Radian other)
 
Radian operator/ (const Radian other) const
 
Radianoperator/= (const Radian other)
 
Radianoperator= (const Radian &other)=default
 

Detailed Description

Radian type (allows automatic worry free conversion between radians and degrees)

Definition at line 18 of file RadiansDegrees.hpp.

Constructor & Destructor Documentation

◆ Radian() [1/4]

raylib::Radian::Radian ( const float  radian)
inline

Definition at line 21 of file RadiansDegrees.hpp.

◆ Radian() [2/4]

raylib::Radian::Radian ( const Radian other)
inline

Definition at line 22 of file RadiansDegrees.hpp.

◆ Radian() [3/4]

raylib::Radian::Radian ( )
inline

Definition at line 23 of file RadiansDegrees.hpp.

◆ Radian() [4/4]

raylib::Radian::Radian ( const Degree  d)
inline

Definition at line 71 of file RadiansDegrees.hpp.

Member Function Documentation

◆ DegreeValue()

float raylib::Radian::DegreeValue ( ) const
inline

Definition at line 72 of file RadiansDegrees.hpp.

◆ operator float()

raylib::Radian::operator float ( ) const
inline

Definition at line 28 of file RadiansDegrees.hpp.

◆ operator*()

Radian raylib::Radian::operator* ( const Radian  other) const
inline

Definition at line 32 of file RadiansDegrees.hpp.

◆ operator*=()

Radian & raylib::Radian::operator*= ( const Radian  other)
inline

Definition at line 37 of file RadiansDegrees.hpp.

◆ operator+()

Radian raylib::Radian::operator+ ( const Radian  other) const
inline

Definition at line 30 of file RadiansDegrees.hpp.

◆ operator+=()

Radian & raylib::Radian::operator+= ( const Radian  other)
inline

Definition at line 35 of file RadiansDegrees.hpp.

◆ operator-()

Radian raylib::Radian::operator- ( const Radian  other) const
inline

Definition at line 31 of file RadiansDegrees.hpp.

◆ operator-=()

Radian & raylib::Radian::operator-= ( const Radian  other)
inline

Definition at line 36 of file RadiansDegrees.hpp.

◆ operator/()

Radian raylib::Radian::operator/ ( const Radian  other) const
inline

Definition at line 33 of file RadiansDegrees.hpp.

◆ operator/=()

Radian & raylib::Radian::operator/= ( const Radian  other)
inline

Definition at line 38 of file RadiansDegrees.hpp.