Esempio n. 1
0
 public static Offset <FBQuaternion> CreateFBQuaternion(FlatBufferBuilder builder,
                                                        float x = 0.0f,
                                                        float y = 0.0f,
                                                        float z = 0.0f,
                                                        float w = 0.0f)
 {
     builder.StartObject(4);
     FBQuaternion.AddW(builder, w);
     FBQuaternion.AddZ(builder, z);
     FBQuaternion.AddY(builder, y);
     FBQuaternion.AddX(builder, x);
     return(FBQuaternion.EndFBQuaternion(builder));
 }
Esempio n. 2
0
 public static FBQuaternion GetRootAsFBQuaternion(ByteBuffer _bb, FBQuaternion obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }