Verified Commit 2c501960 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

geometry: fix default constructor

parent bd746be0
......@@ -110,7 +110,6 @@ namespace eigenpy
void visit(PyClass& cl) const
.def(bp::init<>(bp::arg("self"),"Default constructor")[bp::return_value_policy<bp::return_by_value>()])
"Initialize from rotation matrix.\n"
"\tR : a rotation matrix 3x3.")[bp::return_value_policy<bp::return_by_value>()])
......@@ -129,6 +128,8 @@ namespace eigenpy
"Initialize from a vector 4D.\n"
"\tvec4 : a 4D vector representing quaternion coefficients in the order xyzw.")
"Default constructor")
"Initialize from coefficients.\n\n"
......@@ -269,6 +270,11 @@ namespace eigenpy
return q;
static Quaternion* DefaultConstructor()
return new Quaternion;
static Quaternion* FromOneVector(const Vector4& v)
Quaternion* q(new Quaternion(v));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment