src/java/grl/src/grl/flatbuffer/EulerRotationParams.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 EulerRotationParams extends Table {
13  public static EulerRotationParams getRootAsEulerRotationParams(ByteBuffer _bb, EulerRotationParams obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public EulerRotationParams __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public double r1() { int o = __offset(4); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; }
17  public double r2() { int o = __offset(6); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; }
18  public double r3() { int o = __offset(8); return o != 0 ? bb.getDouble(o + bb_pos) : 0.0; }
19  public byte eulerOrder() { int o = __offset(10); return o != 0 ? bb.get(o + bb_pos) : 0; }
20 
21  public static int createEulerRotationParams(FlatBufferBuilder builder,
22  double r1,
23  double r2,
24  double r3,
25  byte eulerOrder) {
26  builder.startObject(4);
27  EulerRotationParams.addR3(builder, r3);
28  EulerRotationParams.addR2(builder, r2);
29  EulerRotationParams.addR1(builder, r1);
30  EulerRotationParams.addEulerOrder(builder, eulerOrder);
32  }
33 
34  public static void startEulerRotationParams(FlatBufferBuilder builder) { builder.startObject(4); }
35  public static void addR1(FlatBufferBuilder builder, double r1) { builder.addDouble(0, r1, 0.0); }
36  public static void addR2(FlatBufferBuilder builder, double r2) { builder.addDouble(1, r2, 0.0); }
37  public static void addR3(FlatBufferBuilder builder, double r3) { builder.addDouble(2, r3, 0.0); }
38  public static void addEulerOrder(FlatBufferBuilder builder, byte eulerOrder) { builder.addByte(3, eulerOrder, 0); }
39  public static int endEulerRotationParams(FlatBufferBuilder builder) {
40  int o = builder.endObject();
41  return o;
42  }
43 }
44 
static EulerRotationParams getRootAsEulerRotationParams(ByteBuffer _bb)
static EulerRotationParams getRootAsEulerRotationParams(ByteBuffer _bb, EulerRotationParams obj)
static void addEulerOrder(FlatBufferBuilder builder, byte eulerOrder)
static int createEulerRotationParams(FlatBufferBuilder builder, double r1, double r2, double r3, byte eulerOrder)