Package com.adobe.fontengine.math
Class F2Dot14
- java.lang.Object
-
- com.adobe.fontengine.math.F2Dot14
-
public final class F2Dot14 extends Object
Constants and operations on fixed 2.14 numbers. The valuev is represented by theintvalue 2^14 *v .
-
-
Field Summary
Fields Modifier and Type Field Description static intONEstatic intONE_SIXTEENTHstatic intZERO
-
Constructor Summary
Constructors Constructor Description F2Dot14()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intfromDouble(double v)static intmultiply(int v1, int v2)static intsquare(int v)static doubletoDouble(int v)static StringtoString(int v)
-
-
-
Field Detail
-
ZERO
public static final int ZERO
- See Also:
- Constant Field Values
-
ONE
public static final int ONE
- See Also:
- Constant Field Values
-
ONE_SIXTEENTH
public static final int ONE_SIXTEENTH
- See Also:
- Constant Field Values
-
-
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 String toString(int v)
-
-