Added inverse transform (#7999)
Co-authored-by: glopezdiest <glopez@cvc.uab.cat>
This commit is contained in:
parent
29fbcce198
commit
eeb507e585
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue