Files
tustu/app/obfuscated_packages/L/ArrayLookupFunction.java
johndoe6345789 347ed15b78 Add Gauge Color Setters and Properties Menu
- Introduced multiple GaugeColorSetter classes (B to L) for setting gauge colors dynamically.
- Implemented GaugePropertiesMenu class to manage gauge properties and settings.
- Added action listeners for gauge styles and slider value changes to enhance interactivity.
- Created RadioButtonColorSelectionListener and StaticValueActionListener for handling user input.
- Ensured compatibility with existing gauge components and UI elements.
2026-01-11 07:39:35 +00:00

73 lines
1.7 KiB
Java

package L;
import G.aI;
import G.aM;
import V.g;
import ax.S;
import ax.U;
import ax.ab;
import ax.ac;
public class ArrayLookupFunction extends ac {
ab a = null;
ab b;
aM c = null;
aI d;
public d(aI paramaI, ab paramab1, ab paramab2) {
this.a = paramab2;
this.b = paramab1;
this.d = paramaI;
}
public double a(S paramS) {
c(paramS);
try {
double[][] arrayOfDouble = this.c.i(this.d.h());
return a(arrayOfDouble, this.a.b(paramS));
} catch (g g) {
throw new U("Unable to evaluate tableLookup: " + g.getLocalizedMessage());
}
}
public double b(S paramS) {
return a(paramS);
}
private void c(S paramS) {
if (this.c == null) {
this.c = l.a().a((int)this.b.b(paramS));
if (this.c == null)
throw new U("Array Parameter not found!");
if (!this.c.i().equals("array"))
throw new U("Array Parameter must be of type array!");
if (this.c.m() != 1)
throw new U("Array Parameter must be 1D array!");
}
}
public double a(double[][] paramArrayOfdouble, double paramDouble) {
if (paramDouble > (paramArrayOfdouble.length - 1)) {
paramDouble = (paramArrayOfdouble.length - 1);
} else if (paramDouble < 0.0D) {
paramDouble = 0.0D;
}
int i = (int)paramDouble;
int j = (int)Math.ceil(paramDouble);
double d1 = paramDouble - i;
return paramArrayOfdouble[i][0] + d1 * (paramArrayOfdouble[j][0] - paramArrayOfdouble[i][0]);
}
public String toString() {
return "arrayLookup( " + this.b.toString() + " ," + this.a.toString() + " )";
}
}
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/L/d.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/