Robot Core Documentation
Loading...
Searching...
No Matches
edu.wpi.first.math.interpolation.Interpolatable< T > Interface Template Reference
Inheritance diagram for edu.wpi.first.math.interpolation.Interpolatable< T >:
edu.wpi.first.math.geometry.Pose2d edu.wpi.first.math.geometry.Rotation2d edu.wpi.first.math.geometry.Translation2d edu.wpi.first.math.kinematics.SwerveModulePosition

Public Member Functions

interpolate (T endValue, double t)
 

Detailed Description

An object should extend interpolatable if you wish to interpolate between a lower and upper bound, such as a robot position on the field between timesteps. This behavior can be linear or nonlinear.

Parameters
<T>The class that is interpolatable.

Member Function Documentation

◆ interpolate()

T edu.wpi.first.math.interpolation.Interpolatable< T >.interpolate ( T endValue,
double t )

Return the interpolated value. This object is assumed to be the starting position, or lower bound.

Parameters
endValueThe upper bound, or end.
tHow far between the lower and upper bound we are. This should be bounded in [0, 1].
Returns
The interpolated value.

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