Apollo  6.0
Open source self driving car software
Classes | Namespaces | Typedefs | Functions
angle.h File Reference

Defines the templated Angle class. More...

#include <cmath>
#include <cstdint>
#include <limits>
Include dependency graph for angle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  apollo::common::math::Angle< T >
 The Angle class uses an integer to represent an angle, and supports commonly-used operations such as addition and subtraction, as well as the use of trigonometric functions. More...
 

Namespaces

 apollo::common::math
 apollo::common::math
 
 apollo
 PlanningContext is the runtime context in planning. It is persistent across multiple frames.
 
 apollo::common
 apollo::common
 

Typedefs

using apollo::common::math::Angle8 = Angle< int8_t >
 
using apollo::common::math::Angle16 = Angle< int16_t >
 
using apollo::common::math::Angle32 = Angle< int32_t >
 
using apollo::common::math::Angle64 = Angle< int64_t >
 

Functions

template<typename T >
Angle< T > apollo::common::math::operator+ (Angle< T > lhs, Angle< T > rhs)
 Sums two angles. More...
 
template<typename T >
Angle< T > apollo::common::math::operator- (Angle< T > lhs, Angle< T > rhs)
 Subtracts two angles. More...
 
template<typename T , typename Scalar >
Angle< T > apollo::common::math::operator* (Angle< T > lhs, Scalar rhs)
 Multiplies an Angle by a scalar. More...
 
template<typename T , typename Scalar >
Angle< T > apollo::common::math::operator* (Scalar lhs, Angle< T > rhs)
 Multiplies an Angle by a scalar. More...
 
template<typename T , typename Scalar >
Angle< T > apollo::common::math::operator/ (Angle< T > lhs, Scalar rhs)
 Divides an Angle by a scalar. More...
 
template<typename T >
double apollo::common::math::operator/ (Angle< T > lhs, Angle< T > rhs)
 Divides an Angle by a scalar. More...
 
template<typename T >
bool apollo::common::math::operator== (Angle< T > lhs, Angle< T > rhs)
 Tests two Angle objects for equality. More...
 
template<typename T >
bool apollo::common::math::operator!= (Angle< T > lhs, Angle< T > rhs)
 Tests two Angle objects for inequality. More...
 
float apollo::common::math::sin (Angle16 a)
 
float apollo::common::math::cos (Angle16 a)
 
float apollo::common::math::tan (Angle16 a)
 
float apollo::common::math::sin (Angle8 a)
 
float apollo::common::math::cos (Angle8 a)
 
float apollo::common::math::tan (Angle8 a)
 

Detailed Description

Defines the templated Angle class.