From eeb507e5854bdf95a4712c6f6210c5dcb779f7f5 Mon Sep 17 00:00:00 2001 From: glopezdiest <58212725+glopezdiest@users.noreply.github.com> Date: Wed, 31 Jul 2024 10:37:32 +0200 Subject: [PATCH] Added inverse transform (#7999) Co-authored-by: glopezdiest --- PythonAPI/carla/source/libcarla/Geom.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PythonAPI/carla/source/libcarla/Geom.cpp b/PythonAPI/carla/source/libcarla/Geom.cpp index 4c0281270..57e3941cf 100644 --- a/PythonAPI/carla/source/libcarla/Geom.cpp +++ b/PythonAPI/carla/source/libcarla/Geom.cpp @@ -237,6 +237,10 @@ void export_geom() { self.TransformPoint(location); return location; }, arg("in_point")) + .def("inverse_transform", +[](const cg::Transform &self, cg::Vector3D &location) { + self.InverseTransformPoint(location); + return location; + }, arg("in_point")) .def("transform_vector", +[](const cg::Transform &self, cg::Vector3D &vector) { self.TransformVector(vector); return vector;