Merge changes I39804ee6,I6a5a7ea2 into jb-mr1-dev

* changes:
  Use spline interpolation for auto-brightness.
  Add FloatMath.hypot.