Class MiscUtils


  • public class MiscUtils
    extends Object
    • Constructor Detail

      • MiscUtils

        public MiscUtils()
    • Method Detail

      • getPathFromData

        public static void getPathFromData​(ShapeData shapeData,
                                           Path outPath)
      • lerp

        public static float lerp​(float a,
                                 float b,
                                 @FloatRange(from=0.0,to=1.0)
                                 float percentage)
      • lerp

        public static double lerp​(double a,
                                  double b,
                                  @FloatRange(from=0.0,to=1.0)
                                  double percentage)
      • lerp

        public static int lerp​(int a,
                               int b,
                               @FloatRange(from=0.0,to=1.0)
                               float percentage)
      • clamp

        public static int clamp​(int number,
                                int min,
                                int max)
      • clamp

        public static float clamp​(float number,
                                  float min,
                                  float max)
      • clamp

        public static double clamp​(double number,
                                   double min,
                                   double max)
      • contains

        public static boolean contains​(float number,
                                       float rangeMin,
                                       float rangeMax)