public static doubleToByteArray ( double n, int reversed ) : byte[] | ||
n | double | |
reversed | int | |
Результат | byte[] |
static public byte[] doublesToLtVector3d(double x, double y, double z) { DynamicArray din = new DynamicArray(); din.append(NumericalUtils.doubleToByteArray(x, 1)); din.append(NumericalUtils.doubleToByteArray(y, 1)); din.append(NumericalUtils.doubleToByteArray(z, 1)); return(din.getBytes()); }
public void addDouble(double value, int reversed) { packet.append(NumericalUtils.doubleToByteArray(value, reversed)); }
public void setValue(double newValue) { byte[] t = NumericalUtils.doubleToByteArray(newValue, 1); setValue(t); }