update call sites

This commit is contained in:
Balduin
2026-05-07 17:21:00 +02:00
parent 49b7ddbe89
commit 45ba43ee1c
2 changed files with 5 additions and 2 deletions
@@ -55,8 +55,9 @@ public:
vertices_local[i] = ref.project(_vertices[i](0), _vertices[i](1));
}
const bool is_inclusion_zone = (_fence_type == NAV_CMD_FENCE_POLYGON_VERTEX_INCLUSION);
return geofence_utils::lineSegmentIntersectsPolygon(start_local, end_local,
vertices_local, _num_vertices);
vertices_local, _num_vertices, is_inclusion_zone);
}
PolygonInfo getPolygonInfoByIndex(int index) override
+3 -1
View File
@@ -759,8 +759,10 @@ bool Geofence::checkIfLineViolatesAnyFence(const matrix::Vector2f &start_local,
continue;
}
const bool is_inclusion_zone = (info.fence_type == NAV_CMD_FENCE_POLYGON_VERTEX_INCLUSION);
if (geofence_utils::lineSegmentIntersectsPolygon(
start_local, end_local, vertices_local, info.vertex_count)) {
start_local, end_local, vertices_local, info.vertex_count, is_inclusion_zone)) {
return true;
}