diff options
author | Jeremias Maerki <jeremias@apache.org> | 2007-11-03 10:53:04 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2007-11-03 10:53:04 +0000 |
commit | d3568be8f920c9c4b9170626ba05a9c348439f38 (patch) | |
tree | 503fadb5735edb90bf2ff952f8873713a200cf3c /src/java/org/apache/fop/util | |
parent | 3e5157ee722a8dd2f5cf1e48182d92c0b06f5344 (diff) | |
download | xmlgraphics-fop-d3568be8f920c9c4b9170626ba05a9c348439f38.tar.gz xmlgraphics-fop-d3568be8f920c9c4b9170626ba05a9c348439f38.zip |
Added method to convert from inches to points.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591585 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/util')
-rw-r--r-- | src/java/org/apache/fop/util/UnitConv.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/util/UnitConv.java b/src/java/org/apache/fop/util/UnitConv.java index 0eebb8cda..626321ff9 100644 --- a/src/java/org/apache/fop/util/UnitConv.java +++ b/src/java/org/apache/fop/util/UnitConv.java @@ -88,6 +88,15 @@ public final class UnitConv { } /** + * Converts inches (in) to points (pt) + * @param in the value in inches + * @return the value in pt + */ + public static double in2pt(double in) { + return in * IN2PT; + } + + /** * Converts millipoints (mpt) to inches (in) * @param mpt the value in mpt * @return the value in inches |