Package org.cip4.lib.xjdf.util
Class DimensionUtil
java.lang.Object
org.cip4.lib.xjdf.util.DimensionUtil
Static helper class which provides dimension conversion functionality.
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubledtp2Mm(double dtp) Convert DTP-Points to Millimeter.static floatdtp2Mm(float dtp) Convert DTP-Points to Millimeter.static doubleConvert DTP-Points String to Millimeter.static doublemm2Dtp(double millimeter) Convert Millimeter to DTP-Points.static floatmm2Dtp(float millimeter) Convert Millimeter to DTP-Points.static Stringmm2DtpS(double millimeter) Convert Millimeter to DTP-Points String.
-
Method Details
-
mm2Dtp
public static double mm2Dtp(double millimeter) Convert Millimeter to DTP-Points.- Parameters:
millimeter- Millimeter as double value.- Returns:
- Millimeter value in DTP-Points.
-
dtp2Mm
public static double dtp2Mm(double dtp) Convert DTP-Points to Millimeter.- Parameters:
dtp- DTP-Points as value.- Returns:
- DTP-Points value in Millimeter.
-
mm2Dtp
public static float mm2Dtp(float millimeter) Convert Millimeter to DTP-Points.- Parameters:
millimeter- Millimeter as double value.- Returns:
- Millimeter value in DTP-Points.
-
dtp2Mm
public static float dtp2Mm(float dtp) Convert DTP-Points to Millimeter.- Parameters:
dtp- DTP-Points as value.- Returns:
- DTP-Points value in Millimeter.
-
dtp2MmS
Convert DTP-Points String to Millimeter.- Parameters:
strDtp- DTP-Points as String.- Returns:
- DTP-Points value in Millimeter.
-
mm2DtpS
Convert Millimeter to DTP-Points String.- Parameters:
millimeter- Millimeter as double value.- Returns:
- Millimeter value in DTP-Points as String.
-