Skip to contents

Evaluate 2D parametric polynomial curve at specified time points

Usage

eval_trajectory_curve(coeffs_x, coeffs_y, t_eval)

Arguments

coeffs_x

Polynomial coefficients for X

coeffs_y

Polynomial coefficients for Y

t_eval

Numeric vector of time evaluation points

Examples

# x(t) = 1 + 2 t, y(t) = 4 - 3 t (raw polynomial coefficients)
eval_trajectory_curve(c(1, 2), c(4, -3), c(0, 0.5, 1))
#>      [,1] [,2]
#> [1,]    1  4.0
#> [2,]    2  2.5
#> [3,]    3  1.0