Added inverse transform (#7999)

Co-authored-by: glopezdiest <glopez@cvc.uab.cat>
This commit is contained in:
glopezdiest 2024-07-31 10:37:32 +02:00 committed by GitHub
parent 29fbcce198
commit eeb507e585
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -237,6 +237,10 @@ void export_geom() {
self.TransformPoint(location); self.TransformPoint(location);
return location; return location;
}, arg("in_point")) }, 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) { .def("transform_vector", +[](const cg::Transform &self, cg::Vector3D &vector) {
self.TransformVector(vector); self.TransformVector(vector);
return vector; return vector;