|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.afp.Scale
public class Scale
The Scale class provides utility functions for converting
between Anoto Units (AU) and inches/millimeters. One Anoto Unit equals
0.3/8=0.0375 mm. Use the functions in this class to ensure that all
conversions have the same precision.
| Field Summary | |
|---|---|
static float |
AU_PER_INCH
There are 25.4×8/0.3 AU per inch. |
static float |
AU_PER_MM
There are 8/0.3 AU per mm. |
| Method Summary | |
|---|---|
static float |
au2inch(int au)
Deprecated. Use auToInch(int). |
static float |
au2mm(int au)
Deprecated. Use auToMM(int). |
static float |
auToInch(int au)
Converts between Anoto Units (AU) and inches. |
static float |
auToMM(int au)
Converts between Anoto Units (AU) and millimeters (mm). |
static int |
inch2au(float inch)
Deprecated. Use inchToAu(float). |
static int |
inchToAu(float inch)
Converts between inches and Anoto Units (AU). |
static int |
mm2au(float mm)
Deprecated. Use mmToAu(float). |
static int |
mmToAu(float mm)
Converts between millimeters (mm) and Anoto Units (AU). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final float AU_PER_MM
auToMM(int),
mmToAu(float),
Constant Field Valuespublic static final float AU_PER_INCH
| Method Detail |
|---|
public static float au2mm(int au)
auToMM(int).
au - number of AU
public static float auToMM(int au)
au - number of AU
AU_PER_MMpublic static int mm2au(float mm)
mmToAu(float).
mm - number of mm
public static int mmToAu(float mm)
mm - number of mm
AU_PER_MMpublic static float au2inch(int au)
auToInch(int).
au - number of AU
public static float auToInch(int au)
au - number of AU
AU_PER_INCHpublic static int inch2au(float inch)
inchToAu(float).
inch - number of inches
public static int inchToAu(float inch)
inch - number of inches
AU_PER_INCH
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||