]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.common/src/org/simantics/common/utils/CommonUtils.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.common / src / org / simantics / common / utils / CommonUtils.java
index 53b0d7a50376f7a16f5db749324aca7ac9e162aa..7402ed9651f95ffc9e0ed1d2689461e6e403d17a 100644 (file)
@@ -1,15 +1,15 @@
-package org.simantics.common.utils;\r
-\r
-public class CommonUtils {\r
-\r
-       public static double convertColor256ToDouble(int value) {\r
-        // TODO: how close to 256 can we go? \r
-               return (1/255.9999)*((double)value);\r
-       }\r
-       \r
-       public static int convertDoubleToColor256(double value) {\r
-               // TODO: how close to 256 can we go? \r
-               return (int)(255.9999*value);\r
-       }\r
-       \r
-}\r
+package org.simantics.common.utils;
+
+public class CommonUtils {
+
+       public static double convertColor256ToDouble(int value) {
+        // TODO: how close to 256 can we go? 
+               return (1/255.9999)*((double)value);
+       }
+       
+       public static int convertDoubleToColor256(double value) {
+               // TODO: how close to 256 can we go? 
+               return (int)(255.9999*value);
+       }
+       
+}