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 theint
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 String
toString(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)
-
-