Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
eigenpy
Commits
4256d2fa
Verified
Commit
4256d2fa
authored
Nov 07, 2019
by
Justin Carpentier
Browse files
quaternion: add init from Vector4
parent
cdea5a84
Changes
1
Show whitespace changes
Inline
Side-by-side
include/eigenpy/quaternion.hpp
View file @
4256d2fa
...
...
@@ -68,6 +68,7 @@ namespace eigenpy
.
def
(
bp
::
init
<
Matrix3
>
((
bp
::
arg
(
"matrixRotation"
)),
"Initialize from rotation matrix."
))
.
def
(
bp
::
init
<
AngleAxis
>
((
bp
::
arg
(
"angleaxis"
)),
"Initialize from angle axis."
))
.
def
(
bp
::
init
<
Quaternion
>
((
bp
::
arg
(
"clone"
)),
"Copy constructor."
))
.
def
(
bp
::
init
<
Vector4
>
((
bp
::
arg
(
"Vec4: a 4D vector representing quaternion coefficients"
)),
"Initialize from a vector 4D."
))
.
def
(
"__init__"
,
bp
::
make_constructor
(
&
QuaternionVisitor
::
FromTwoVectors
,
bp
::
default_call_policies
(),
(
bp
::
arg
(
"u"
),
bp
::
arg
(
"v"
))),
"Initialize from two vector u,v"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment