MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / project

Function project

pj_scene2D/core/src/scene_entities_2d_decoder.cpp:22–24  ·  view source on GitHub ↗

Translation-only orthographic XY projection. Rotation and Z are intentionally dropped to keep SceneEntities usable as lightweight pixel-space overlays.

Source from the content-addressed store, hash-verified

20// Translation-only orthographic XY projection. Rotation and Z are intentionally
21// dropped to keep SceneEntities usable as lightweight pixel-space overlays.
22[[nodiscard]] Point2 project(const sdk::Point3& point, const sdk::Pose& pose) noexcept {
23 return Point2{pose.position.x + point.x, pose.position.y + point.y};
24}
25
26[[nodiscard]] Point2 projectPosition(const sdk::Pose& pose) noexcept {
27 return Point2{pose.position.x, pose.position.y};

Callers 2

projectedLinePointsFunction · 0.85
appendTriangleEdgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected