Class F2Dot14


  • public final class F2Dot14
    extends java.lang.Object
    Constants and operations on fixed 2.14 numbers. The value v is represented by the int value 2^14 * v.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ONE  
      static int ONE_SIXTEENTH  
      static int ZERO  
    • Constructor Summary

      Constructors 
      Constructor Description
      F2Dot14()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int fromDouble​(double v)  
      static int multiply​(int v1, int v2)  
      static int square​(int v)  
      static double toDouble​(int v)  
      static java.lang.String toString​(int v)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • F2Dot14

        public F2Dot14()
    • Method Detail

      • multiply

        public static int multiply​(int v1,
                                   int v2)
      • square

        public static int square​(int v)
      • fromDouble

        public static int fromDouble​(double v)
      • toDouble

        public static double toDouble​(int v)
      • toString

        public static java.lang.String toString​(int v)