BaiduMap_IOSSDK_v6.6.6_Docs 6.6.6

载入中...
搜索中...
未找到
BMKInterpolator.h
浏览该文件的文档.
1//
2// BMKInterpolator.h
3// MapComponent
4//
5// Created by zhaoxiangru on 2024/3/12.
6// Copyright © 2024 Baidu. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
13// 插值器类型
14 typedef enum : NSUInteger {
18 BMKLinearInterpolator = 1,
22 BMKAccelerateDecelerateInterpolator,
26 BMKAccelerateInterpolator,
30 BMKDecelerateInterpolator,
34 BMKAnticipateInterpolator,
38 BMKOvershootInterpolator,
42 BMKAnticipateOvershootInterpolator,
46 BMKBounceInterpolator,
50 BMKCycleInterpolator,
51} BMKInterpolatorType;
52
53@interface BMKInterpolator : NSObject
54+ (instancetype)linearInterpolator;
55
56+ (instancetype)interpolatorWithType:(BMKInterpolatorType)type;
57
58+ (instancetype)accelerateInterpolatorWithFactor:(float)factor;
59
60+ (instancetype)decelerateInterpolatorWithFactor:(float)factor;
61
62+ (instancetype)anticipateInterpolatorWithTension:(float)tension;
63
64+ (instancetype)anticipateOvershootInterpolatorWithTension:(float)tension extraTension:(float)extra;
65
66+ (instancetype)cycleInterpolatorWithCycles:(float)cycle;
67
68+ (instancetype)overshootInterpolatorWithTension:(float)tension;
69@end
70
71NS_ASSUME_NONNULL_END
BMKInterpolatorType
BMKInterpolatorType
Definition BMKInterpolator.h:14
BMKAnticipateOvershootInterpolator
@ BMKAnticipateOvershootInterpolator
Definition BMKInterpolator.h:42
BMKCycleInterpolator
@ BMKCycleInterpolator
Definition BMKInterpolator.h:50
BMKAnticipateInterpolator
@ BMKAnticipateInterpolator
Definition BMKInterpolator.h:34
BMKDecelerateInterpolator
@ BMKDecelerateInterpolator
Definition BMKInterpolator.h:30
BMKAccelerateDecelerateInterpolator
@ BMKAccelerateDecelerateInterpolator
Definition BMKInterpolator.h:22
BMKAccelerateInterpolator
@ BMKAccelerateInterpolator
Definition BMKInterpolator.h:26
BMKBounceInterpolator
@ BMKBounceInterpolator
Definition BMKInterpolator.h:46
BMKOvershootInterpolator
@ BMKOvershootInterpolator
Definition BMKInterpolator.h:38
BMKLinearInterpolator
@ BMKLinearInterpolator
Definition BMKInterpolator.h:18
BMKInterpolator
Definition BMKInterpolator.h:54
+[BMKInterpolator linearInterpolator]
instancetype linearInterpolator()