]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added method to convert from inches to points.
authorJeremias Maerki <jeremias@apache.org>
Sat, 3 Nov 2007 10:53:04 +0000 (10:53 +0000)
committerJeremias Maerki <jeremias@apache.org>
Sat, 3 Nov 2007 10:53:04 +0000 (10:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591585 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/util/UnitConv.java

index 0eebb8cda2b4db484ec7914862d1cf6796613cbb..626321ff92e04c6fec5cc43b3435441e8f631c47 100644 (file)
@@ -87,6 +87,15 @@ public final class UnitConv {
         return in * IN2PT * 1000;
     }
     
+    /**
+     * 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