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

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

#include <RadiansDegrees.hpp>

Public Member Functions

 Degree (const Degree &other)
 
 Degree (const Radian r)
 
 Degree (float degree)
 
 operator float () const
 
Degree operator* (const Degree other) const
 
Degreeoperator*= (const Degree other)
 
Degree operator+ (const Degree other) const
 
Degreeoperator+= (const Degree other)
 
Degree operator- (const Degree other) const
 
Degreeoperator-= (const Degree other)
 
Degree operator/ (const Degree other) const
 
Degreeoperator/= (const Degree other)
 
Degreeoperator= (const Degree &other)=default
 
float RadianValue () const
 

Detailed Description

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

Definition at line 46 of file RadiansDegrees.hpp.

Constructor & Destructor Documentation

◆ Degree() [1/4]

raylib::Degree::Degree ( float  degree)
inline

Definition at line 49 of file RadiansDegrees.hpp.

◆ Degree() [2/4]

raylib::Degree::Degree ( const Degree other)
inline

Definition at line 50 of file RadiansDegrees.hpp.

◆ Degree() [3/4]

raylib::Degree::Degree ( )
inline

Definition at line 51 of file RadiansDegrees.hpp.

◆ Degree() [4/4]

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

Definition at line 52 of file RadiansDegrees.hpp.

Member Function Documentation

◆ operator float()

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

Definition at line 56 of file RadiansDegrees.hpp.

◆ operator*()

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

Definition at line 60 of file RadiansDegrees.hpp.

◆ operator*=()

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

Definition at line 65 of file RadiansDegrees.hpp.

◆ operator+()

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

Definition at line 58 of file RadiansDegrees.hpp.

◆ operator+=()

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

Definition at line 63 of file RadiansDegrees.hpp.

◆ operator-()

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

Definition at line 59 of file RadiansDegrees.hpp.

◆ operator-=()

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

Definition at line 64 of file RadiansDegrees.hpp.

◆ operator/()

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

Definition at line 61 of file RadiansDegrees.hpp.

◆ operator/=()

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

Definition at line 66 of file RadiansDegrees.hpp.

◆ RadianValue()

float raylib::Degree::RadianValue ( ) const
inline

Definition at line 68 of file RadiansDegrees.hpp.