Castor3D 0.17.0
Multiplatform 3D engine
Classes | Namespaces | Functions
Angle.hpp File Reference

Classes

class  castor::AngleT< Type >
 Angle helper class. More...
 

Namespaces

namespace  castor
 

Typedefs

Math
using castor::Angle = AngleT< float >
 

Functions

template<typename Type >
static AngleT< Type > castor::acosT (double value)
 Computes this angle's value from the given cosine value.
 
template<typename Type >
static AngleT< Type > castor::asinT (double value)
 Computes this angle's value from the given sine value.
 
template<typename Type >
static AngleT< Type > castor::atanT (double value)
 Computes this angle's value from the given tangent value.
 
template<typename Type >
static AngleT< Type > castor::atan2T (double y, double x)
 Computes this angle's value from the given tangent value.
 
static AngleT< float > castor::acosf (double value)
 Computes this angle's value from the given cosine value.
 
static AngleT< float > castor::asinf (double value)
 Computes this angle's value from the given sine value.
 
static AngleT< float > castor::atanf (double value)
 Computes this angle's value from the given tangent value.
 
static AngleT< float > castor::atan2f (double y, double x)
 Computes this angle's value from the given tangent value.
 
static AngleT< double > castor::acosd (double value)
 Computes this angle's value from the given cosine value.
 
static AngleT< double > castor::asind (double value)
 Computes this angle's value from the given sine value.
 
static AngleT< double > castor::atand (double value)
 Computes this angle's value from the given tangent value.
 
static AngleT< double > castor::atan2d (double y, double x)
 Computes this angle's value from the given tangent value.
 
constexpr castor::Angle operator""_turns (long double value)
 
constexpr castor::Angle operator""_degrees (long double value)
 
constexpr castor::Angle operator""_radians (long double value)
 
Comparison operators.
template<typename Type >
bool castor::operator== (AngleT< Type > const &lhs, AngleT< Type > const &rhs) noexcept
 
template<typename Type >
auto castor::operator<=> (AngleT< Type > const &lhs, AngleT< Type > const &rhs) noexcept
 
Arihmetic operators.
template<typename Type >
AngleT< Type > castor::operator+ (AngleT< Type > const &lhs, AngleT< Type > const &rhs) noexcept
 
template<typename Type >
AngleT< Type > castor::operator- (AngleT< Type > const &lhs, AngleT< Type > const &rhs) noexcept
 
template<typename Type >
AngleT< Type > castor::operator* (AngleT< Type > const &lhs, AngleT< Type > const &rhs) noexcept
 
template<typename Type >
AngleT< Type > castor::operator/ (AngleT< Type > const &lhs, AngleT< Type > const &rhs) noexcept
 
template<typename Type >
AngleT< Type > castor::operator* (AngleT< Type > const &lhs, double rhs) noexcept
 
template<typename Type >
AngleT< Type > castor::operator/ (AngleT< Type > const &lhs, double rhs) noexcept
 

Function Documentation

◆ operator""_degrees()

constexpr castor::Angle operator""_degrees ( long double value)
constexpr

References castor::AngleT< Type >::fromDegrees().

Here is the call graph for this function:

◆ operator""_radians()

constexpr castor::Angle operator""_radians ( long double value)
constexpr

References castor::AngleT< Type >::fromRadians().

Here is the call graph for this function:

◆ operator""_turns()

constexpr castor::Angle operator""_turns ( long double value)
constexpr

References castor::AngleT< Type >::fromTurns().

Here is the call graph for this function: