Verified Commit f3971b68 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python/transform: add copy constructor

parent c68543fd
// Software License Agreement (BSD License)
// Copyright (c) 2019 CNRS-LAAS
// Copyright (c) 2019 CNRS-LAAS INRIA
// Author: Joseph Mirabel
// All rights reserved.
......@@ -69,12 +69,13 @@ void exposeMaths ()
class_ <Transform3f> ("Transform3f", init<>())
class_ <Transform3f> ("Transform3f", init<>("Default constructor."))
.def (init<Matrix3f, Vec3f>())
.def (init<Quaternion3f, Vec3f>())
.def (init<Matrix3f>())
.def (init<Quaternion3f>())
.def (init<Vec3f>())
.def (init<Transform3f>(args("self","other"),"Copy constructor."))
.def ("getQuatRotation", &Transform3f::getQuatRotation)
.def ("getTranslation", &Transform3f::getTranslation, return_value_policy<copy_const_reference>())
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