From a69ee3ece9f88f426dbcd38cf6836daa33934339 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Sat, 8 Jan 2022 11:09:29 -0800 Subject: [PATCH] [wpimath] Const-qualify Twist2d scalar multiply (#3882) Fixes #3880. --- wpimath/src/main/native/include/frc/geometry/Twist2d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpimath/src/main/native/include/frc/geometry/Twist2d.h b/wpimath/src/main/native/include/frc/geometry/Twist2d.h index 24d4d7e62c..6ad2b38a98 100644 --- a/wpimath/src/main/native/include/frc/geometry/Twist2d.h +++ b/wpimath/src/main/native/include/frc/geometry/Twist2d.h @@ -60,7 +60,7 @@ struct WPILIB_DLLEXPORT Twist2d { * @param factor The factor by which to scale. * @return The scaled Twist2d. */ - Twist2d operator*(double factor) { + Twist2d operator*(double factor) const { return Twist2d{dx * factor, dy * factor, dtheta * factor}; } };