Exemple #1
0
        public static cave.Length forValue(double value, int unit)
        {
            var v = new cave.Length();

            v.setValue(value);
            v.setUnit(unit);
            return(v);
        }
Exemple #2
0
        public static cave.Length forInches(double value)
        {
            var v = new cave.Length();

            v.setValue(value);
            v.setUnit(cave.Length.UNIT_INCH);
            return(v);
        }
Exemple #3
0
        public static cave.Length forNanoMeters(double value)
        {
            var v = new cave.Length();

            v.setValue(value);
            v.setUnit(cave.Length.UNIT_NANOMETER);
            return(v);
        }
Exemple #4
0
        public static cave.Length forMilliMeters(double value)
        {
            var v = new cave.Length();

            v.setValue(value);
            v.setUnit(cave.Length.UNIT_MILLIMETER);
            return(v);
        }
Exemple #5
0
        public static cave.Length forPoints(double value)
        {
            var v = new cave.Length();

            v.setValue(value);
            v.setUnit(cave.Length.UNIT_POINT);
            return(v);
        }
Exemple #6
0
        public static cave.Length forStringAsPoints(string value, int ppi)
        {
            var v = new cave.Length();

            v.parse(value);
            v.setValue((double)v.toPoints(ppi));
            v.setUnit(cave.Length.UNIT_POINT);
            return(v);
        }