[wpimath] Replace pi with symbol in docs (#7322)

This commit is contained in:
Tyler Veness
2024-11-01 17:16:18 -07:00
committed by GitHub
parent 2cfe114c78
commit dfd1084526
6 changed files with 11 additions and 11 deletions

View File

@@ -67,8 +67,8 @@ class WPILIB_DLLEXPORT Rotation2d {
}
/**
* Adds two rotations together, with the result being bounded between -pi and
* pi.
* Adds two rotations together, with the result being bounded between -π and
* π.
*
* For example, <code>Rotation2d{30_deg} + Rotation2d{60_deg}</code> equals
* <code>Rotation2d{units::radian_t{std::numbers::pi/2.0}}</code>
@@ -158,7 +158,7 @@ class WPILIB_DLLEXPORT Rotation2d {
* Returns the radian value of the rotation.
*
* @return The radian value of the rotation.
* @see AngleModulus to constrain the angle within (-pi, pi]
* @see AngleModulus to constrain the angle within (-π, π]
*/
constexpr units::radian_t Radians() const { return m_value; }