Documentation ¶
Index ¶
- Constants
- func FromPath(mot *Mot, filePath string) error
- func FromPathWithOffsetSize(mot *Mot, filePath string, offset uint32, size uint32) error
- type Curve
- type Mot
- type Record
- func (self *Record) CurveToBezier(index int, p0 *[2]float32, p1 *[2]float32, p2 *[2]float32, p3 *[2]float32, ...) error
- func (self *Record) CurveToHermite(index int, p0 *[2]float32, m0 *float32, p1 *[2]float32, m1 *float32) error
- func (self *Record) CurveToLinear(index int, p0 *[2]float32, p1 *[2]float32) error
- func (self *Record) QuantizeHermite(frameTotal uint16) []float32
- func (self *Record) QuantizeLinear(frameTotal uint16) []float32
Constants ¶
View Source
const (
Signature uint32 = 0x3362746D
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Curve ¶
type Mot ¶
type Record ¶
type Record struct { IsNull bool `json:"is_null"` Target uint8 `json:"target"` Channel uint8 `json:"channel"` CurveTotal uint16 `json:"curve_total"` UseGlobalTransform uint32 `json:"use_global_transform"` Position uint16 `json:"position"` PositionDelta uint16 `json:"position_delta"` Tangent0 uint16 `json:"tangent_0"` TangentDelta0 uint16 `json:"tangent_delta_0"` Tangent1 uint16 `json:"tangent_1"` TangentDelta1 uint16 `json:"tangent_delta_1"` Curves []*Curve `json:"curves"` }
func (*Record) CurveToBezier ¶
func (*Record) CurveToHermite ¶
func (*Record) CurveToLinear ¶
func (*Record) QuantizeHermite ¶
func (*Record) QuantizeLinear ¶
Click to show internal directories.
Click to hide internal directories.