src/java/grl/src/grl/flatbuffer/Quaternion.java
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 package grl.flatbuffer;
4 
5 import java.nio.*;
6 import java.lang.*;
7 import java.util.*;
8 import com.google.flatbuffers.*;
9 
10 @SuppressWarnings("unused")
11 public final class Quaternion extends Struct {
12  public Quaternion __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
13 
14  public double x() { return bb.getDouble(bb_pos + 0); }
15  public double y() { return bb.getDouble(bb_pos + 8); }
16  public double z() { return bb.getDouble(bb_pos + 16); }
17  public double w() { return bb.getDouble(bb_pos + 24); }
18 
19  public static int createQuaternion(FlatBufferBuilder builder, double x, double y, double z, double w) {
20  builder.prep(8, 32);
21  builder.putDouble(w);
22  builder.putDouble(z);
23  builder.putDouble(y);
24  builder.putDouble(x);
25  return builder.offset();
26  }
27 }
28 
static int createQuaternion(FlatBufferBuilder builder, double x, double y, double z, double w)