Web Analytics Made Easy - Statcounter
Skip to content

Class SBDTypeCubicPolynomial#

template <typename T>

ClassList > SBDTypeCubicPolynomial

This class describes a cubic polynomial. More...

  • #include <SBDTypeCubicPolynomial.hpp>

Public Attributes#

Type Name
T c0
T c1
T c2
T c3
double endTime
double startTime

Public Functions#

Type Name
SBDTypeCubicPolynomial ()
SBDTypeCubicPolynomial (const T & c0, const T & c1, const T & c2, const T & c3, double startTime, double endTime)
T evaluate (double time) const
void serialize (SBCSerializer * serializer, const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER) const
Serializes the cubic polynomial using the provided serializer . This function can only be used when the template parameter is a physical quantity.
void unserialize (SBCSerializer * serializer, const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER)
Unserializes the physical interval using the provided serializer . This function can only be used when the template parameter is a physical quantity.
~SBDTypeCubicPolynomial ()

Public Static Functions#

Type Name
SBVector< SBDTypeCubicPolynomial< T > > interpolate (const SBVector< double > & timeVector, const SBVector< T > & valueVector)

Detailed Description#

Short name: SBCubicPolynomial

Public Attributes Documentation#

variable c0#

T c0;

variable c1#

T c1;

variable c2#

T c2;

variable c3#

T c3;

variable endTime#

double endTime;

variable startTime#

double startTime;

Public Functions Documentation#

function SBDTypeCubicPolynomial [1/2]#

inline SBDTypeCubicPolynomial::SBDTypeCubicPolynomial () 

function SBDTypeCubicPolynomial [2/2]#

inline SBDTypeCubicPolynomial::SBDTypeCubicPolynomial (
    const T & c0,
    const T & c1,
    const T & c2,
    const T & c3,
    double startTime,
    double endTime
) 

function evaluate#

inline T SBDTypeCubicPolynomial::evaluate (
    double time
) const

function serialize#

Serializes the cubic polynomial using the provided serializer . This function can only be used when the template parameter is a physical quantity.

inline void SBDTypeCubicPolynomial::serialize (
    SBCSerializer * serializer,
    const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER
) const


function unserialize#

Unserializes the physical interval using the provided serializer . This function can only be used when the template parameter is a physical quantity.

inline void SBDTypeCubicPolynomial::unserialize (
    SBCSerializer * serializer,
    const SBVersionNumber & sdkVersionNumber=SB_SDK_VERSION_NUMBER
) 


function ~SBDTypeCubicPolynomial#

inline SBDTypeCubicPolynomial::~SBDTypeCubicPolynomial () 

Public Static Functions Documentation#

function interpolate#

static inline SBVector< SBDTypeCubicPolynomial < T > > SBDTypeCubicPolynomial::interpolate (
    const SBVector< double > & timeVector,
    const SBVector< T > & valueVector
)