Пример #1
0
 public static Offset <Vec4> CreateVec4(FlatBufferBuilder builder,
                                        float x = 0.0f,
                                        float y = 0.0f,
                                        float z = 0.0f,
                                        float w = 0.0f)
 {
     builder.StartObject(4);
     Vec4.AddW(builder, w);
     Vec4.AddZ(builder, z);
     Vec4.AddY(builder, y);
     Vec4.AddX(builder, x);
     return(Vec4.EndVec4(builder));
 }
Пример #2
0
 public static Vec4 GetRootAsVec4(ByteBuffer _bb, Vec4 obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }
Пример #3
0
 public Vec4 GetRotation(Vec4 obj)
 {
     int o = __offset(6); return(o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null);
 }