static Offset <FTriple> serialise_position(FlatBufferBuilder b, PositionConfigurable observer) { var pos = observer.ObservationValue; FTriple.StartFTriple(b); FTriple.AddVec3(b, FVector3.CreateFVector3(b, pos.x, pos.y, pos.z)); return(FTriple.EndFTriple(b)); }
static Offset <FTriple> serialise_triple(FlatBufferBuilder b, IHasTriple numeral) { FTriple.StartFTriple(b); var vec3 = numeral.ObservationValue; FTriple.AddVec3(b, FVector3.CreateFVector3(b, vec3.x, vec3.y, vec3.z)); //FSingle.AddRange(b, numeral.ObservationValue); return(FTriple.EndFTriple(b)); }
public static FTriple GetRootAsFTriple(ByteBuffer _bb, FTriple obj) { return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }