[wpimath] Const-qualify Twist2d scalar multiply (#3882)

Fixes #3880.
This commit is contained in:
Tyler Veness
2022-01-08 11:09:29 -08:00
committed by GitHub
parent 750d9a30c9
commit a69ee3ece9

View File

@@ -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};
}
};