FMKInterpolator Class Reference

Inherits from NSObject
Declared in FMKInterpolator.h

Overview

动画插值器函数对象

  type

缓动函数插值类型

@property (nonatomic, assign) FMKStageType type

Declared In

FMKInterpolator.h

– initWithStageType:

插值器初始化

- (instancetype)initWithStageType:(FMKStageType)stageType

Parameters

stageType

插值类型 默认使用USE_INOUT

Return Value

插值器对象

Declared In

FMKInterpolator.h

– inWithGoingTime:withStart:withEnd:withDuration:

插值器类型函数 FMKSTAGE_IN

- (double)inWithGoingTime:(GoingTime)goingTime withStart:(OriginalValue)start withEnd:(ChangedValue)changed withDuration:(NSTimeInterval)duration

Parameters

goingTime

已运行时间

start

起始值

changed

改变量

duration

持续时间

Return Value

计算插值

Declared In

FMKInterpolator.h

– outWithGoingTime:withStart:withEnd:withDuration:

插值器类型函数 FMKSTAGE_OUT

- (double)outWithGoingTime:(GoingTime)goingTime withStart:(OriginalValue)start withEnd:(ChangedValue)changed withDuration:(NSTimeInterval)duration

Parameters

goingTime

已运行时间

start

起始值

changed

改变量

duration

持续时间

Return Value

计算插值

Declared In

FMKInterpolator.h

– inOutWithGoingTime:withStart:withEnd:withDuration:

插值器类型函数 FMKSTAGE_INOUT

- (double)inOutWithGoingTime:(GoingTime)goingTime withStart:(OriginalValue)start withEnd:(ChangedValue)changed withDuration:(NSTimeInterval)duration

Parameters

goingTime

已运行时间

start

起始值

changed

改变量

duration

持续时间

Return Value

计算插值

Declared In

FMKInterpolator.h