예제 #1
0
파일: ByteUtil.java 프로젝트: CTDP/rfDynHUD
 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);
 }
예제 #2
0
파일: ByteUtil.java 프로젝트: CTDP/rfDynHUD
 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);
 }