Class: AnimationCurveT
Animation Cureve has frame list data
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new AnimationCurveT(k?
): AnimationCurveT
Parameters
Name | Type | Default value |
---|---|---|
k | number | 1 |
Returns
Defined in
src/math/AnimationCurveT.ts:26
Properties
path
• path: string
Defined in
src/math/AnimationCurveT.ts:14
attribute
• attribute: string
Defined in
src/math/AnimationCurveT.ts:15
propertys
• propertys: string
[]
Defined in
src/math/AnimationCurveT.ts:16
preInfinity
• preInfinity: number
Defined in
src/math/AnimationCurveT.ts:17
postInfinity
• postInfinity: number
Defined in
src/math/AnimationCurveT.ts:18
rotationOrder
• rotationOrder: number
Defined in
src/math/AnimationCurveT.ts:19
m_curves
• m_curves: AnimationCurve
[]
Defined in
src/math/AnimationCurveT.ts:20
Accessors
totalTime
• get
totalTime(): number
return this curve use total time
Returns
number
Defined in
src/math/AnimationCurveT.ts:57
Methods
addKeyFrame
▸ addKeyFrame(keyFrame
): void
add keyFrame to curve keyframe last and calcTotalTime
Parameters
Name | Type | Description |
---|---|---|
keyFrame | KeyframeT | Keyframe sea: one key frame data |
Returns
void
Defined in
src/math/AnimationCurveT.ts:65
removeKeyFrame
▸ removeKeyFrame(keyFrame
): void
remove keyframe from this curve
Parameters
Name | Type | Description |
---|---|---|
keyFrame | KeyframeT | Keyframe |
Returns
void
Defined in
src/math/AnimationCurveT.ts:75
getValue
▸ getValue(time
): CurveValueT
get caculate frames value
Parameters
Name | Type |
---|---|
time | number |
Returns
Defined in
src/math/AnimationCurveT.ts:86
getKeyCount
▸ getKeyCount(): number
get has Keyframe list count
Returns
number
int
Defined in
src/math/AnimationCurveT.ts:146
getKey
▸ getKey(index
): Keyframe
[]
Get a Keyframe Data by Index
Parameters
Name | Type | Description |
---|---|---|
index | number | must int |
Returns
Keyframe
[]
Keyframe Keyframe
Defined in
src/math/AnimationCurveT.ts:155
formBytes
▸ formBytes(bytes
): void
Parameters
Name | Type |
---|---|
bytes | BytesArray |
Returns
void