WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::math::SwerveModulePosition Struct Reference

Represents the position of one swerve module. More...

#include <wpi/math/kinematics/SwerveModulePosition.hpp>

Public Member Functions

constexpr bool operator== (const SwerveModulePosition &other) const
 Checks equality between this SwerveModulePosition and another object.
constexpr SwerveModulePosition Interpolate (const SwerveModulePosition &endValue, double t) const

Public Attributes

wpi::units::meter_t distance = 0_m
 Distance the wheel of a module has traveled.
Rotation2d angle
 Angle of the module.

Detailed Description

Represents the position of one swerve module.

Member Function Documentation

◆ Interpolate()

SwerveModulePosition wpi::math::SwerveModulePosition::Interpolate ( const SwerveModulePosition & endValue,
double t ) const
inlineconstexpr

◆ operator==()

bool wpi::math::SwerveModulePosition::operator== ( const SwerveModulePosition & other) const
inlineconstexpr

Checks equality between this SwerveModulePosition and another object.

Parameters
otherThe other object.
Returns
Whether the two objects are equal.

Member Data Documentation

◆ angle

Rotation2d wpi::math::SwerveModulePosition::angle

Angle of the module.

◆ distance

wpi::units::meter_t wpi::math::SwerveModulePosition::distance = 0_m

Distance the wheel of a module has traveled.


The documentation for this struct was generated from the following file: