Package org.ironmaple.utils.mathutils
Class SwerveStateProjection
java.lang.Object
org.ironmaple.utils.mathutils.SwerveStateProjection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleproject(SwerveModuleState swerveSpeed, Rotation2d currentSwerveFacing) Projects the swerve module speed onto the direction of the current swerve facing.
-
Constructor Details
-
SwerveStateProjection
public SwerveStateProjection()
-
-
Method Details
-
project
Projects the swerve module speed onto the direction of the current swerve facing.- Parameters:
swerveSpeed- The current speed and direction of the swerve module.currentSwerveFacing- The desired direction to project onto.- Returns:
- The projected speed in the direction of currentSwerveFacing.
-