java.lang.Object
org.wpilib.math.interpolation.InterpolatingMatrixTreeMap<K,R,C>
- Type Parameters:
K- Key type.R- Number of matrix rows.C- Number of matrix columns.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value associated with a given key.Return the value interpolated between val1 and val2 by the interpolant d.doubleinverseInterpolate(K up, K q, K down) Return where within interpolation range [0, 1] q is between down and up.voidInserts a key-value pair.
-
Constructor Details
-
InterpolatingMatrixTreeMap
public InterpolatingMatrixTreeMap()Default constructor.
-
-
Method Details
-
put
-
get
-
interpolate
Return the value interpolated between val1 and val2 by the interpolant d.- Parameters:
val1- The lower part of the interpolation range.val2- The upper part of the interpolation range.d- The interpolant in the range [0, 1].- Returns:
- The interpolated value.
-
inverseInterpolate
-