diff --git a/Docs/python_api.md b/Docs/python_api.md index 3ed66db63..1237d7381 100644 --- a/Docs/python_api.md +++ b/Docs/python_api.md @@ -2794,14 +2794,18 @@ Describes a rotation for an object according to Unreal Engine's axis system. - **Parameters:** - `location` (_[carla.Location](#carla.Location)_) - `rotation` (_[carla.Rotation](#carla.Rotation) - degrees (pitch, yaw, roll)_) +- **inverse_transform**(**self**, **in_point**) +Applies the inverse of `transform` by translating a 3D point in place from global to local coordinates using the current transformation as frame of reference. + - **Parameters:** + - `in_point` (_[carla.Vector3D](#carla.Vector3D)_) - Location in the space to which the inverse transformation will be applied. - **transform**(**self**, **in_point**) -Translates a 3D point from local to global coordinates using the current transformation as frame of reference. +Translates a 3D point in place from local to global coordinates using the current transformation as frame of reference. - **Parameters:** - - `in_point` (_[carla.Location](#carla.Location)_) - Location in the space to which the transformation will be applied. -- **transform_vector**(**self**, **in_vector**) -Rotates a vector using the current transformation as frame of reference, without applying translation. Use this to transform, for example, a velocity. + - `in_point` (_[carla.Vector3D](#carla.Vector3D)_) - Location in the space to which the transformation will be applied. +- **transform_vector**(**self**, **in_point**) +Rotates a vector in place using the current transformation as frame of reference, without applying translation. Use this to transform, for example, a velocity. - **Parameters:** - - `in_vector` (_[carla.Vector3D](#carla.Vector3D)_) - Vector to which the transformation will be applied. + - `in_point` (_[carla.Vector3D](#carla.Vector3D)_) - Vector to which the transformation will be applied. ##### Getters - **get_forward_vector**(**self**) diff --git a/PythonAPI/docs/geom.yml b/PythonAPI/docs/geom.yml index eb71836e4..03e5fdf48 100644 --- a/PythonAPI/docs/geom.yml +++ b/PythonAPI/docs/geom.yml @@ -438,20 +438,29 @@ - def_name: transform params: - param_name: in_point - type: carla.Location + type: carla.Vector3D doc: > Location in the space to which the transformation will be applied. doc: > - Translates a 3D point from local to global coordinates using the current transformation as frame of reference. + Translates a 3D point in place from local to global coordinates using the current transformation as frame of reference. + # -------------------------------------- + - def_name: inverse_transform + params: + - param_name: in_point + type: carla.Vector3D + doc: > + Location in the space to which the inverse transformation will be applied. + doc: > + Applies the inverse of `transform` by translating a 3D point in place from global to local coordinates using the current transformation as frame of reference. # -------------------------------------- - def_name: transform_vector params: - - param_name: in_vector + - param_name: in_point type: carla.Vector3D doc: > Vector to which the transformation will be applied. doc: > - Rotates a vector using the current transformation as frame of reference, without applying translation. Use this to transform, for example, a velocity. + Rotates a vector in place using the current transformation as frame of reference, without applying translation. Use this to transform, for example, a velocity. # -------------------------------------- - def_name: get_forward_vector return: carla.Vector3D