mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Merge branch 'main' into 2027
This commit is contained in:
@@ -11,6 +11,7 @@ package edu.wpi.first.math.interpolation;
|
||||
*
|
||||
* @param <T> The class that is interpolatable.
|
||||
*/
|
||||
@SuppressWarnings("PMD.ImplicitFunctionalInterface")
|
||||
public interface Interpolatable<T> {
|
||||
/**
|
||||
* Return the interpolated value. This object is assumed to be the starting position, or lower
|
||||
|
||||
@@ -226,7 +226,7 @@ public final class SplineHelper {
|
||||
* @param splines An array of un-optimized quintic splines.
|
||||
* @return An array of optimized quintic splines.
|
||||
*/
|
||||
@SuppressWarnings({"LocalVariableName", "PMD.AvoidInstantiatingObjectsInLoops"})
|
||||
@SuppressWarnings("LocalVariableName")
|
||||
public static QuinticHermiteSpline[] optimizeCurvature(QuinticHermiteSpline[] splines) {
|
||||
// If there's only spline in the array, we can't optimize anything so just return that.
|
||||
if (splines.length < 2) {
|
||||
|
||||
Reference in New Issue
Block a user