Example #1
0
 public static final void readVectorD(final byte[] buffer, final int offset, TelemVect3 vector) {
   vector.x = (float) ByteUtil.readDouble(buffer, offset + 0 * ByteUtil.SIZE_DOUBLE);
   vector.y = (float) ByteUtil.readDouble(buffer, offset + 1 * ByteUtil.SIZE_DOUBLE);
   vector.z = (float) ByteUtil.readDouble(buffer, offset + 2 * ByteUtil.SIZE_DOUBLE);
 }
Example #2
0
 public static final void readVectorF(final byte[] buffer, final int offset, TelemVect3 vector) {
   vector.x = ByteUtil.readFloat(buffer, offset + 0 * ByteUtil.SIZE_FLOAT);
   vector.y = ByteUtil.readFloat(buffer, offset + 1 * ByteUtil.SIZE_FLOAT);
   vector.z = ByteUtil.readFloat(buffer, offset + 2 * ByteUtil.SIZE_FLOAT);
 }