Package 

Class MiscUtils

    • Method Summary

      Modifier and Type Method Description
      static PointF addPoints(PointF p1, PointF p2)
      static void getPathFromData(ShapeData shapeData, Path outPath)
      static float lerp(float a, float b, @FloatRange(from = 0f, to = 1f) float percentage)
      static double lerp(double a, double b, @FloatRange(from = 0f, to = 1f) double percentage)
      static int lerp(int a, int b, @FloatRange(from = 0f, to = 1f) float percentage)
      static int clamp(int number, int min, int max)
      static float clamp(float number, float min, float max)
      static double clamp(double number, double min, double max)
      static boolean contains(float number, float rangeMin, float rangeMax)
      static void resolveKeyPath(KeyPath keyPath, int depth, List<KeyPath> accumulator, KeyPath currentPartialKeyPath, KeyPathElementContent content) Helper method for any KeyPathElementContent that will check if the contentfully matches the keypath then will add itself as the final key, resolve it, and addit to the accumulator list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait