Add constness to matrices and vectors
parent
d76ed71c99
commit
c140a784fe
|
@ -29,7 +29,7 @@ void exportPoint2(){
|
|||
|
||||
class_<Point2>("Point2", init<>())
|
||||
.def(init<double, double>())
|
||||
.def(init<Vector>())
|
||||
.def(init<const Vector2 &>())
|
||||
.def("identity", &Point2::identity)
|
||||
.def("dist", &Point2::dist)
|
||||
.def("distance", &Point2::distance)
|
||||
|
|
|
@ -29,7 +29,7 @@ void exportPoint3(){
|
|||
class_<Point3>("Point3")
|
||||
.def(init<>())
|
||||
.def(init<double,double,double>())
|
||||
.def(init<Vector>())
|
||||
.def(init<const Vector3 &>())
|
||||
.def("identity", &Point3::identity)
|
||||
.staticmethod("identity")
|
||||
.def("add", &Point3::add)
|
||||
|
|
|
@ -44,11 +44,11 @@ void exportPose3(){
|
|||
|
||||
class_<Pose3>("Pose3")
|
||||
.def(init<>())
|
||||
.def(init<Pose3>())
|
||||
.def(init<Rot3,Point3>())
|
||||
.def(init<Rot3,Vector3>())
|
||||
.def(init<Pose2>())
|
||||
.def(init<Matrix>())
|
||||
.def(init<const Pose3 &>())
|
||||
.def(init<const Rot3 &,const Point3 &>())
|
||||
.def(init<const Rot3 &,const Vector3 &>())
|
||||
.def(init<const Pose2 &>())
|
||||
.def(init<const Matrix &>())
|
||||
.def("print", &Pose3::print, print_overloads(args("s")))
|
||||
.def("equals", &Pose3::equals, equals_overloads(args("pose","tol")))
|
||||
.def("identity", &Pose3::identity)
|
||||
|
|
|
@ -39,8 +39,8 @@ void exportRot3(){
|
|||
.def(init<>())
|
||||
.def(init<Point3,Point3,Point3>())
|
||||
.def(init<double,double,double,double,double,double,double,double,double>())
|
||||
.def(init<Matrix3>())
|
||||
.def(init<Matrix>())
|
||||
.def(init<const Matrix3 &>())
|
||||
.def(init<const Matrix &>())
|
||||
.def("AxisAngle", AxisAngle_0)
|
||||
.def("AxisAngle", AxisAngle_1)
|
||||
.staticmethod("AxisAngle")
|
||||
|
|
Loading…
Reference in New Issue