Package com.adobe.fontengine.math
Class Math2
- java.lang.Object
-
- com.adobe.fontengine.math.Math2
-
public class Math2 extends java.lang.Object
Additional math functions.
-
-
Constructor Summary
Constructors Constructor Description Math2()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
epsilonEquals(double a, double b)
static boolean
epsilonEquals(float a, float b)
static int
powerOf2(int v)
static double
roundHalfDown(double v)
static double
roundHalfUp(double v)
-
-
-
Method Detail
-
roundHalfUp
public static double roundHalfUp(double v)
-
roundHalfDown
public static double roundHalfDown(double v)
-
epsilonEquals
public static boolean epsilonEquals(float a, float b)
-
epsilonEquals
public static boolean epsilonEquals(double a, double b)
-
powerOf2
public static int powerOf2(int v)
-
-