Skip to content
Snippets Groups Projects
Commit f0d71bf3 authored by Thomas Oster's avatar Thomas Oster
Browse files

small addition

parent 88790c6c
No related branches found
No related tags found
No related merge requests found
......@@ -2,17 +2,17 @@
* This file is part of VisiCut.
* Copyright (C) 2012 Thomas Oster <thomas.oster@rwth-aachen.de>
* RWTH Aachen University - 52062 Aachen, Germany
*
*
* VisiCut is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* VisiCut is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with VisiCut. If not, see <http://www.gnu.org/licenses/>.
**/
......@@ -33,7 +33,12 @@ public class Util {
//TODO: check
return dpi / 25.4;
}
public static double dpmm2dpi(double dpmm)
{
return dpmm * 25.4;
}
public static double inch2mm(double inch) {
return inch * 25.4;
}
......@@ -55,7 +60,7 @@ public class Util {
* This method is used to avoid null checks
* @param a
* @param b
* @return
* @return
*/
public static boolean differ(Object a, Object b) {
if (a == null ^ b == null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment