Skip to content

Commit ceb889b

Browse files
authored
fix missing const (#6097)
1 parent bf0e2ba commit ceb889b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/webots/nodes/utils/WbObjectDetection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ bool WbObjectDetection::computeObject(const WbVector3 &devicePosition, const WbM
433433
}
434434

435435
WbAffinePlane *WbObjectDetection::computeFrustumPlanes(const WbVector3 &devicePosition, const WbMatrix3 &deviceRotation,
436-
double verticalFieldOfView, double horizontalFieldOfView,
437-
double maxRange, bool isPlanarProjection) {
436+
const double verticalFieldOfView, const double horizontalFieldOfView,
437+
const double maxRange, bool isPlanarProjection) {
438438
// construct the 4 planes defining the sides of the frustum
439439
const float halfFovX = horizontalFieldOfView / 2.0;
440440
const float halfFovY = verticalFieldOfView / 2.0;

src/webots/nodes/utils/WbObjectDetection.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ class WbObjectDetection {
5252
const WbAffinePlane *frustumPlanes);
5353

5454
static WbAffinePlane *computeFrustumPlanes(const WbVector3 &devicePosition, const WbMatrix3 &deviceRotation,
55-
double verticalFieldOfView, double horizontalFieldOfView, double maxRange,
56-
bool isPlanarProjection);
55+
const double verticalFieldOfView, const double horizontalFieldOfView,
56+
const double maxRange, bool isPlanarProjection);
5757

5858
protected:
5959
static void mergeBounds(WbVector3 &referenceObjectSize, WbVector3 &referenceObjectRelativePosition,

0 commit comments

Comments
 (0)