build/include/grl/flatbuffer/grl/flatbuffer/EulerTranslationParams.java
Go to the documentation of this file.
1 // automatically generated, 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 EulerTranslationParams extends Table {
13  public static EulerTranslationParams getRootAsEulerTranslationParams(ByteBuffer _bb, EulerTranslationParams obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public EulerTranslationParams __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public double x() { int o = __offset(4); return o != 0 ? bb.getDouble(o + bb_pos) : 0; }
17  public double y() { int o = __offset(6); return o != 0 ? bb.getDouble(o + bb_pos) : 0; }
18  public double z() { int o = __offset(8); return o != 0 ? bb.getDouble(o + bb_pos) : 0; }
19 
20  public static int createEulerTranslationParams(FlatBufferBuilder builder,
21  double x,
22  double y,
23  double z) {
24  builder.startObject(3);
25  EulerTranslationParams.addZ(builder, z);
26  EulerTranslationParams.addY(builder, y);
27  EulerTranslationParams.addX(builder, x);
29  }
30 
31  public static void startEulerTranslationParams(FlatBufferBuilder builder) { builder.startObject(3); }
32  public static void addX(FlatBufferBuilder builder, double x) { builder.addDouble(0, x, 0); }
33  public static void addY(FlatBufferBuilder builder, double y) { builder.addDouble(1, y, 0); }
34  public static void addZ(FlatBufferBuilder builder, double z) { builder.addDouble(2, z, 0); }
35  public static int endEulerTranslationParams(FlatBufferBuilder builder) {
36  int o = builder.endObject();
37  return o;
38  }
39 };
40 
static EulerTranslationParams getRootAsEulerTranslationParams(ByteBuffer _bb, EulerTranslationParams obj)
static int createEulerTranslationParams(FlatBufferBuilder builder, double x, double y, double z)