HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mathUtils.h File Reference
#include "pxr/pxr.h"
#include "pxr/base/ts/api.h"
#include "pxr/base/ts/types.h"
+ Include dependency graph for mathUtils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

TS_API double Ts_SolveCubic (const TsTime c[4], TsTime time)
 
template<typename T >
void Ts_CubicDerivative (const T poly[4], double deriv[3])
 
double Ts_SolveCubicInInterval (const TsTime poly[4], const TsTime polyDeriv[3], TsTime y, const GfInterval &bounds)
 
bool Ts_SolveQuadratic (const double poly[3], double *root0, double *root1)
 
template<typename T >
Ts_EvalQuadratic (const T c[3], double u)
 
template<typename T >
Ts_EvalCubic (const T c[4], double u)
 
template<typename T >
Ts_EvalCubicDerivative (const T c[4], double u)
 

Function Documentation

template<typename T >
void Ts_CubicDerivative ( const T  poly[4],
double  deriv[3] 
)

Definition at line 46 of file mathUtils.h.

template<typename T >
T Ts_EvalCubic ( const T  c[4],
double  u 
)

Definition at line 74 of file mathUtils.h.

template<typename T >
T Ts_EvalCubicDerivative ( const T  c[4],
double  u 
)

Definition at line 81 of file mathUtils.h.

template<typename T >
T Ts_EvalQuadratic ( const T  c[3],
double  u 
)

Definition at line 66 of file mathUtils.h.

TS_API double Ts_SolveCubic ( const TsTime  c[4],
TsTime  time 
)
double Ts_SolveCubicInInterval ( const TsTime  poly[4],
const TsTime  polyDeriv[3],
TsTime  y,
const GfInterval bounds 
)
bool Ts_SolveQuadratic ( const double  poly[3],
double *  root0,
double *  root1 
)