src/java/grl/src/grl/flatbuffer/Vector3d.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 Vector3d extends Struct {
12  public Vector3d __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 
18  public static int createVector3d(FlatBufferBuilder builder, double x, double y, double z) {
19  builder.prep(8, 24);
20  builder.putDouble(z);
21  builder.putDouble(y);
22  builder.putDouble(x);
23  return builder.offset();
24  }
25 }
26 
static int createVector3d(FlatBufferBuilder builder, double x, double y, double z)