inverseLerpOptimized static method

Float32x4 inverseLerpOptimized(
  1. Float32x4 min,
  2. Float32x4 max,
  3. Float32x4 delta,
  4. bool isEqualValue,
  5. Float32x4 value,
)

Implementation

static Float32x4 inverseLerpOptimized(Float32x4 min, Float32x4 max,
    Float32x4 delta, bool isEqualValue, Float32x4 value) {
  if (isEqualValue) return min;
  return (value - min) / delta;
}