Package com.adobe.fontengine.math
Class F26Dot6
- java.lang.Object
-
- com.adobe.fontengine.math.F26Dot6
-
public final class F26Dot6 extends java.lang.Object
Constants and operations on fixed 26.6 numbers. The valuev is represented by theint
value 2^6 *v .
-
-
Constructor Summary
Constructors Constructor Description F26Dot6()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
abs(int v)
static int
add(int v1, int v2)
static int
ceiling(int v)
static int
divide(int v1, int v2)
static int
divideByF16Dot16(int v1, int v2)
static int
divideByF2Dot14(int v1, int v2)
static int
floor(int v)
static int
fromDouble(double v)
static int
fromInt(int v)
static boolean
isEven(int v1)
static int
max(int v1, int v2)
static int
min(int v1, int v2)
static int
multiply(int v1, int v2)
static int
multiplyByF16Dot16(int v1, int v2)
static int
multiplyByF2Dot14(int v1, int v2)
static int
multiplyByF2Dot14DivideByF2Dot14(int v1, int v2, int v3)
static int
multiplyDivide(int v1, int v2, int v3)
static int
negate(int v)
static int
round(int v)
static int
roundHalfDown(int v)
static int
roundHalfUp(int v)
static boolean
sameSign(int v1, int v2)
static int
subtract(int v1, int v2)
static double
toDouble(int v)
static int
toInt(int v)
static java.lang.String
toString(int v)
static int
truncate(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_HALF
public static final int ONE_HALF
- See Also:
- Constant Field Values
-
MAX_VALUE
public static final int MAX_VALUE
- See Also:
- Constant Field Values
-
MIN_VALUE
public static final int MIN_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
truncate
public static int truncate(int v)
-
ceiling
public static int ceiling(int v)
-
floor
public static int floor(int v)
-
round
public static int round(int v)
-
roundHalfUp
public static int roundHalfUp(int v)
-
roundHalfDown
public static int roundHalfDown(int v)
-
negate
public static int negate(int v)
-
abs
public static int abs(int v)
-
add
public static int add(int v1, int v2)
-
subtract
public static int subtract(int v1, int v2)
-
multiply
public static int multiply(int v1, int v2)
-
divide
public static int divide(int v1, int v2)
-
multiplyByF2Dot14
public static int multiplyByF2Dot14(int v1, int v2)
-
divideByF2Dot14
public static int divideByF2Dot14(int v1, int v2)
-
multiplyByF16Dot16
public static int multiplyByF16Dot16(int v1, int v2)
-
divideByF16Dot16
public static int divideByF16Dot16(int v1, int v2)
-
multiplyDivide
public static int multiplyDivide(int v1, int v2, int v3)
-
multiplyByF2Dot14DivideByF2Dot14
public static int multiplyByF2Dot14DivideByF2Dot14(int v1, int v2, int v3)
-
isEven
public static boolean isEven(int v1)
-
sameSign
public static boolean sameSign(int v1, int v2)
-
min
public static int min(int v1, int v2)
-
max
public static int max(int v1, int v2)
-
toDouble
public static double toDouble(int v)
-
fromDouble
public static int fromDouble(double v)
-
toInt
public static int toInt(int v)
-
fromInt
public static int fromInt(int v)
-
toString
public static java.lang.String toString(int v)
-
-