isApprox check if other and *this are approximately equals. Only two curves of the same class can be approximately equals, for comparison between different type of curves see isEquivalent
isApprox check if other and *this are approximately equal given a precision threshold Only two curves of the same class can be approximately equal, for comparison between different type of curves see isEquivalent.
Add a new curve to piecewise curve, which should be defined in where is equal to of the actual piecewise curve. The curve added should be of type Curve as defined in the template.
Get curve corresponding to time t in piecewise curve. Example : A piecewise curve PC made of two curves : c1 for t in [0,1] and c2 for t in ]1,2]. PC.curve_at_time(0.5) will return c1.
isEquivalent check if other and *this are approximately equal by values, given a precision threshold. This test is done by discretizing both curves and evaluating them and their derivatives.
load_piecewise_from_text_file build a piecewise polynomial from a list of discrete points read from a file. The file should contains one points per line, optionally with it's derivative and second derivatives. Each lines should then contains dim, 2*dim or 3*dim values
Add a new curve to piecewise curve, which should be defined in where is equal to of the actual piecewise curve. The curve added should be of type Curve as defined in the template.
Get curve corresponding to time t in piecewise curve. Example : A piecewise curve PC made of two curves : c1 for t in [0,1] and c2 for t in ]1,2]. PC.curve_at_time(0.5) will return c1.
isApprox check if other and *this are approximately equal given a precision threshold Only two curves of the same class can be approximately equal, for comparison between different type of curves see isEquivalent.
Parameters
other
the other curve to check
prec
the precision threshold, default Eigen::NumTraits<Numeric>::dummy_precision()
isApprox check if other and *this are approximately equals. Only two curves of the same class can be approximately equals, for comparison between different type of curves see isEquivalent
Parameters
other
the other curve to check
prec
the precision threshold, default Eigen::NumTraits<Numeric>::dummy_precision()
load_piecewise_from_text_file build a piecewise polynomial from a list of discrete points read from a file. The file should contains one points per line, optionally with it's derivative and second derivatives. Each lines should then contains dim, 2*dim or 3*dim values
Parameters
filename
the (absolute) name of the file to load
dt
the time step between each points in the file
dim
the dimension of the curve
Returns
a piecewise curves containing polynomial connectiong all the points in the file