mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpimath] ChassisSpeeds: add equals method (#6414)
This commit is contained in:
@@ -267,6 +267,15 @@ struct WPILIB_DLLEXPORT ChassisSpeeds {
|
||||
constexpr ChassisSpeeds operator/(double scalar) const {
|
||||
return operator*(1.0 / scalar);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares the ChassisSpeeds with another ChassisSpeed.
|
||||
*
|
||||
* @param other The other ChassisSpeeds.
|
||||
*
|
||||
* @return The result of the comparison. Is true if they are the same.
|
||||
*/
|
||||
constexpr bool operator==(const ChassisSpeeds& other) const = default;
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user