# automatically generated by the FlatBuffers compiler, do not modify

# namespace: apemodefb

import flatbuffers

class QuatFb(object):
    __slots__ = ['_tab']

    # QuatFb
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    # QuatFb
    def Nx(self): return self._tab.Get(flatbuffers.number_types.Float32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(0))
    # QuatFb
    def Ny(self): return self._tab.Get(flatbuffers.number_types.Float32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(4))
    # QuatFb
    def Nz(self): return self._tab.Get(flatbuffers.number_types.Float32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(8))
    # QuatFb
    def S(self): return self._tab.Get(flatbuffers.number_types.Float32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(12))

def CreateQuatFb(builder, nx, ny, nz, s):
    builder.Prep(4, 16)
    builder.PrependFloat32(s)
    builder.PrependFloat32(nz)
    builder.PrependFloat32(ny)
    builder.PrependFloat32(nx)
    return builder.Offset()
