7#ifndef LIBA_TRAJPOLY3_H
8#define LIBA_TRAJPOLY3_H
20#if !defined A_TRAJPOLY3
23#if defined(__cplusplus)
52#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 1)
55#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 2)
72#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 1)
87#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 2)
102#if defined(__cplusplus)
106typedef struct a_trajpoly3 trajpoly3;
123#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 1)
126#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 2)
129#if defined(__cplusplus)
138 a_trajpoly3_gen0(
this, ts, p0, p1, v0, v1);
144#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 1)
145 A_INLINE
void gen1() { a_trajpoly3_gen1(
this); }
151#if defined(A_TRAJPOLY3) && (A_TRAJPOLY3 + 0 > 2)
152 A_INLINE
void gen2() { a_trajpoly3_gen2(
this); }
double a_float
compiler built-in floating-point number type
Definition a.h:1003
a_float a_trajpoly3_pos(a_trajpoly3 const *ctx, a_float x)
calculate position for cubic polynomial trajectory
a_float a_trajpoly3_acc(a_trajpoly3 const *ctx, a_float x)
calculate acceleration for cubic polynomial trajectory
void a_trajpoly3_gen(a_trajpoly3 *ctx, a_float ts, a_float p0, a_float p1, a_float v0, a_float v1)
generate for cubic polynomial trajectory
a_float a_trajpoly3_vel(a_trajpoly3 const *ctx, a_float x)
calculate velocity for cubic polynomial trajectory
instance structure for cubic polynomial trajectory
Definition trajpoly3.h:121
a_float a[2]
Definition trajpoly3.h:127
a_float p[4]
Definition trajpoly3.h:122
a_float v[3]
Definition trajpoly3.h:124