Skip to content

Conversation

@jcarpent
Copy link
Contributor

No description provided.

@jcarpent jcarpent changed the base branch from master to devel October 21, 2019 12:11
@jcarpent
Copy link
Contributor Author

Related to #94

bp::return_value_policy<bp::copy_const_reference>())
.def("matrix",&Quaternion::matrix,"Returns an equivalent rotation matrix")
.def("toRotationMatrix ",&Quaternion::toRotationMatrix,"Returns an equivalent 3x3 rotation matrix.")
.def("toRotationMatrix",&Quaternion::toRotationMatrix,"Returns an equivalent 3x3 rotation matrix.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't believe this ^^' I hadn't noticed! All because of one extra space! Noce one!

@gabrielebndn
Copy link
Contributor

gabrielebndn commented Oct 21, 2019

Surprising boost-python even allows this!
How about adding toRotationMatrix() in the unit tests?
Also, a little explanation in the docstring to say that matrix() is the same as toRotationMatrix()?

@jcarpent jcarpent merged commit 47fe430 into stack-of-tasks:devel Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants