Skip to content

Commit 715c8d5

Browse files
committed
[Geometry] Remove reference to QuaternionBase
1 parent f6784a6 commit 715c8d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/quaternion.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ namespace eigenpy
112112
.def("_transformVector",&Quaternion::_transformVector,bp::arg("vector"),"Rotation of a vector by a quaternion.")
113113
.def("vec",&vec,"Returns a vector expression of the imaginary part (x,y,z).")
114114
.def("angularDistance",&Quaternion::template angularDistance<Quaternion>,"Returns the angle (in radian) between two rotations.")
115-
.def("slerp",&Quaternion::template slerp<Quaternion>,bp::args("t","other"),
115+
.def("slerp",&slerp,bp::args("t","other"),
116116
"Returns the spherical linear interpolation between the two quaternions *this and other at the parameter t in [0;1].")
117117

118118
/* --- Operators --- */
@@ -205,6 +205,9 @@ namespace eigenpy
205205

206206
return ss.str();
207207
}
208+
209+
static Quaternion slerp(const Quaternion & self, const Scalar t, const Quaternion & other)
210+
{ return self.slerp(t,other); }
208211

209212
public:
210213

0 commit comments

Comments
 (0)