updates for 0.9.4
[debian/openrocket] / src / net / sf / openrocket / unit / Unit.java
index 3686bedc38ca2a0bcee2e3a575944f5afe5916a7..55b4f160d786c5e88ab43d13b049e7a0e8572d2f 100644 (file)
@@ -167,6 +167,17 @@ public abstract class Unit {
        
        
        
+       /**
+        * Creates a new Value object with the specified value and this unit.
+        * 
+        * @param value the value to set.
+        * @return              a new Value object.
+        */
+       public Value toValue(double value) {
+               return new Value(value, this);
+       }
+       
+       
 
        /**
         * Round the value (in the current units) to a precision suitable for rough valuing