mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[docs] Add missing JavaDocs (#6146)
This commit is contained in:
@@ -9,6 +9,7 @@ package edu.wpi.first.math.interpolation;
|
||||
* from points that are defined. This uses linear interpolation.
|
||||
*/
|
||||
public class InterpolatingDoubleTreeMap extends InterpolatingTreeMap<Double, Double> {
|
||||
/** Default constructor. */
|
||||
public InterpolatingDoubleTreeMap() {
|
||||
super(InverseInterpolator.forDouble(), Interpolator.forDouble());
|
||||
}
|
||||
|
||||
@@ -24,6 +24,11 @@ public interface Interpolator<T> {
|
||||
*/
|
||||
T interpolate(T startValue, T endValue, double t);
|
||||
|
||||
/**
|
||||
* Returns interpolator for Double.
|
||||
*
|
||||
* @return Interpolator for Double.
|
||||
*/
|
||||
static Interpolator<Double> forDouble() {
|
||||
return MathUtil::interpolate;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,11 @@ public interface InverseInterpolator<T> {
|
||||
*/
|
||||
double inverseInterpolate(T startValue, T endValue, T q);
|
||||
|
||||
/**
|
||||
* Returns inverse interpolator for Double.
|
||||
*
|
||||
* @return Inverse interpolator for Double.
|
||||
*/
|
||||
static InverseInterpolator<Double> forDouble() {
|
||||
return MathUtil::inverseInterpolate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user