Antkeeper  0.0.1
Public Member Functions | Public Attributes | List of all members
physics::orbit::trajectory< T > Struct Template Reference

Describes the trajectory of an orbit with Chebyshev polynomials. More...

#include <trajectory.hpp>

Public Member Functions

math::vec3< T > position (T t) const
 Calculates the Cartesian position of a trajectory at a given time. More...
 

Public Attributes

t0
 Start time of the trajectory. More...
 
t1
 End time of the trajectory. More...
 
dt
 Time step duration. More...
 
std::size_t n
 Chebyshev polynomial degree. More...
 
std::vector< T > a
 Chebyshev polynomial coefficients. More...
 

Detailed Description

template<class T>
struct physics::orbit::trajectory< T >

Describes the trajectory of an orbit with Chebyshev polynomials.

Template Parameters
tReal type.

Definition at line 36 of file trajectory.hpp.

Member Function Documentation

◆ position()

template<class T >
math::vec3< T > physics::orbit::trajectory< T >::position ( t) const

Calculates the Cartesian position of a trajectory at a given time.

Parameters
tTime, on [t0, t1).
Returns
Trajectory position at time t.

Definition at line 63 of file trajectory.hpp.

Member Data Documentation

◆ a

template<class T >
std::vector<T> physics::orbit::trajectory< T >::a

Chebyshev polynomial coefficients.

Definition at line 51 of file trajectory.hpp.

◆ dt

template<class T >
T physics::orbit::trajectory< T >::dt

Time step duration.

Definition at line 45 of file trajectory.hpp.

◆ n

template<class T >
std::size_t physics::orbit::trajectory< T >::n

Chebyshev polynomial degree.

Definition at line 48 of file trajectory.hpp.

◆ t0

template<class T >
T physics::orbit::trajectory< T >::t0

Start time of the trajectory.

Definition at line 39 of file trajectory.hpp.

◆ t1

template<class T >
T physics::orbit::trajectory< T >::t1

End time of the trajectory.

Definition at line 42 of file trajectory.hpp.


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