Skip to content
Snippets Groups Projects
Commit cb632132 authored by Islam Abed's avatar Islam Abed
Browse files

Address review comments

parent fde7bd3f
No related branches found
Tags v2.1.0
1 merge request!41Add interface function for TransformPolylinePointsFromWorldToLocal
...@@ -41,23 +41,23 @@ public: ...@@ -41,23 +41,23 @@ public:
/// @brief Transforms world polyline positions to local coordinate system. /// @brief Transforms world polyline positions to local coordinate system.
/// @param polyline_points world polyline points to be transformed /// @param polyline_points world polyline points to be transformed
/// @param position local system position /// @param local_origin local coordinate system origin
/// @param orientation local system orientation /// @param local_orientation local system orientation
/// @return converted polyline points /// @return converted polyline points
virtual std::vector<Vec3<units::length::meter_t>> TransformPolylinePointsFromWorldToLocal( virtual std::vector<Vec3<units::length::meter_t>> TransformPolylinePointsFromWorldToLocal(
const std::vector<Vec3<units::length::meter_t>>& polyline_points, const std::vector<Vec3<units::length::meter_t>>& polyline_points,
const Vec3<units::length::meter_t>& position, const Vec3<units::length::meter_t>& local_origin,
const Orientation3<units::angle::radian_t>& orientation) const = 0; const Orientation3<units::angle::radian_t>& local_orientation) const = 0;
/// @brief Transforms world position to local coordinate system. /// @brief Transforms world position to local coordinate system.
/// @param point_position world point position to be transformed /// @param world_position world position to be transformed
/// @param position local system position /// @param local_origin local coordinate system origin
/// @param orientation local system orientation /// @param local_orientation local system orientation
/// @return transformed point /// @return transformed point
virtual Vec3<units::length::meter_t> TransformPointPositionFromWorldToLocal( virtual Vec3<units::length::meter_t> TransformPositionFromWorldToLocal(
const Vec3<units::length::meter_t>& point_position, const Vec3<units::length::meter_t>& world_position,
const Vec3<units::length::meter_t>& position, const Vec3<units::length::meter_t>& local_origin,
const Orientation3<units::angle::radian_t>& orientation) const = 0; const Orientation3<units::angle::radian_t>& local_orientation) const = 0;
}; };
} // namespace mantle_api } // namespace mantle_api
......
...@@ -50,18 +50,18 @@ public: ...@@ -50,18 +50,18 @@ public:
const Vec3<units::length::meter_t>& position, const Vec3<units::length::meter_t>& position,
const Orientation3<units::angle::radian_t>& orientation) const const Orientation3<units::angle::radian_t>& orientation) const
{ {
// do not translate but return original points // do not transform but return original points
std::ignore = position; std::ignore = position;
std::ignore = orientation; std::ignore = orientation;
return polyline_points; return polyline_points;
} }
virtual Vec3<units::length::meter_t> TransformPointPositionFromWorldToLocal( virtual Vec3<units::length::meter_t> TransformPositionFromWorldToLocal(
const Vec3<units::length::meter_t>& point_position, const Vec3<units::length::meter_t>& point_position,
const Vec3<units::length::meter_t>& position, const Vec3<units::length::meter_t>& position,
const Orientation3<units::angle::radian_t>& orientation) const const Orientation3<units::angle::radian_t>& orientation) const
{ {
// do not translate but return original points // do not transform but return original points
std::ignore = position; std::ignore = position;
std::ignore = orientation; std::ignore = orientation;
return point_position; return point_position;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment