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)); }
public static Vec4 GetRootAsVec4(ByteBuffer _bb, Vec4 obj) { return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
public Vec4 GetRotation(Vec4 obj) { int o = __offset(6); return(o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null); }