angleLerpOptimized static method

double angleLerpOptimized(
  1. Float32x4 angle,
  2. Float32x4 from,
  3. double t
)

Implementation

static double angleLerpOptimized(Float32x4 angle, Float32x4 from, double t) {
  var multiplier = Float32x4.splat(t);

  var result = from + angle * multiplier;

  return result.x.clamp(0, 360);
}