20 #ifndef _TRANSLATION_ALONG_X_AXIS_H_
21 #define _TRANSLATION_ALONG_X_AXIS_H_
23 #include "mbsim/functions/function.h"
24 #include "mbsim/utils/utils.h"
28 template<
typename Arg>
30 using B = fmatvec::Function<fmatvec::Vec3(Arg)>;
32 fmatvec::Vec3 r, a, zero;
35 int getArgSize()
const override {
return 1; }
36 fmatvec::Vec3 operator()(
const Arg &q)
override {
40 typename B::DRetDArg parDer(
const Arg &arg)
override {
return a; }
41 typename B::DRetDArg parDerDirDer(
const Arg &arg1Dir,
const Arg &arg1)
override {
return zero; }
42 bool constParDer()
const override {
return true; }
Definition: translation_along_x_axis.h:29
Definition: contact_kinematics.h:32