|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gnu.java.awt.font.opentype.truetype.Fixed
A utility class for fixed-point arithmetics, where numbers are represented with 26 dot 6 digits. This representation is used by TrueType coordinates.
A good compiler will inline calls of methods in this class.
| Field Summary | |
static int |
ONE
|
| Constructor Summary | |
private |
Fixed()
The constructor is private so nobody can use it. |
| Method Summary | |
static int |
ceil(int a)
|
static int |
div(int a,
int b)
|
static double |
doubleValue(int f)
|
static float |
floatValue(int f)
|
static int |
floor(int a)
|
static int |
intValue(int f)
|
static int |
mul(int a,
int b)
Multiplies two fixed-point numbers. |
static java.lang.String |
toString(int f)
Makes a string representation of a fixed-point number. |
static java.lang.String |
toString(int x,
int y)
|
static int |
valueOf(double d)
|
static int |
valueOf(float f)
|
static int |
vectorLength(int x,
int y)
Calculates the length of a fixed-point vector. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ONE
| Constructor Detail |
private Fixed()
| Method Detail |
public static int mul(int a,
int b)
public static int div(int a,
int b)
public static int ceil(int a)
public static int floor(int a)
public static int vectorLength(int x,
int y)
public static int intValue(int f)
public static float floatValue(int f)
public static double doubleValue(int f)
public static int valueOf(float f)
public static int valueOf(double d)
public static java.lang.String toString(int f)
public static java.lang.String toString(int x,
int y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||