Skip to content

Class: AnimationCurveT

Animation Cureve has frame list data

Constructors

Properties

Accessors

Methods

Constructors

constructor

new AnimationCurveT(k?): AnimationCurveT

Parameters

NameTypeDefault value
knumber1

Returns

AnimationCurveT

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

NameTypeDescription
keyFrameKeyframeTKeyframe sea: one key frame data

Returns

void

Defined in

src/math/AnimationCurveT.ts:65


removeKeyFrame

removeKeyFrame(keyFrame): void

remove keyframe from this curve

Parameters

NameTypeDescription
keyFrameKeyframeTKeyframe

Returns

void

Defined in

src/math/AnimationCurveT.ts:75


getValue

getValue(time): CurveValueT

get caculate frames value

Parameters

NameType
timenumber

Returns

CurveValueT

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

NameTypeDescription
indexnumbermust int

Returns

Keyframe[]

Keyframe Keyframe

Defined in

src/math/AnimationCurveT.ts:155


formBytes

formBytes(bytes): void

Parameters

NameType
bytesBytesArray

Returns

void

Defined in

src/math/AnimationCurveT.ts:163

Released under the MIT License