Class stl_Maths

java.lang.Object
com.jackmeng.stl.stl_Maths

public final class stl_Maths
extends java.lang.Object
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private stl_Maths()  
  • Method Summary

    Modifier and Type Method Description
    static int binomial_coefficient​(int n, int k)  
    static int clamp​(int value, int min, int max)  
    static double clamp_with_epsilon​(double value, double min, double max, double epsilon)  
    static double exponential_clamp​(double value, double min, double max, double exponent)  
    static double smoothstep_Clamp​(double value, double min, double max, double smoothness)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • stl_Maths

      private stl_Maths()
  • Method Details

    • binomial_coefficient

      public static int binomial_coefficient​(int n, int k)
    • clamp_with_epsilon

      public static double clamp_with_epsilon​(double value, double min, double max, double epsilon)
    • exponential_clamp

      public static double exponential_clamp​(double value, double min, double max, double exponent)
    • smoothstep_Clamp

      public static double smoothstep_Clamp​(double value, double min, double max, double smoothness)
    • clamp

      public static int clamp​(int value, int min, int max)