public static cave.Length forValue(double value, int unit) { var v = new cave.Length(); v.setValue(value); v.setUnit(unit); return(v); }
public static cave.Length forInches(double value) { var v = new cave.Length(); v.setValue(value); v.setUnit(cave.Length.UNIT_INCH); return(v); }
public static cave.Length forNanoMeters(double value) { var v = new cave.Length(); v.setValue(value); v.setUnit(cave.Length.UNIT_NANOMETER); return(v); }
public static cave.Length forMilliMeters(double value) { var v = new cave.Length(); v.setValue(value); v.setUnit(cave.Length.UNIT_MILLIMETER); return(v); }
public static cave.Length forPoints(double value) { var v = new cave.Length(); v.setValue(value); v.setUnit(cave.Length.UNIT_POINT); return(v); }
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); }