LOTBezierData.h 588 B

12345678910111213141516171819202122232425262728
  1. //
  2. // LOTBezierData.h
  3. // Lottie
  4. //
  5. // Created by brandon_withrow on 7/10/17.
  6. // Copyright © 2017 Airbnb. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <CoreGraphics/CoreGraphics.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface LOTBezierData : NSObject
  12. - (instancetype)initWithData:(NSDictionary *)bezierData;
  13. @property (nonatomic, readonly) NSInteger count;
  14. @property (nonatomic, readonly) BOOL closed;
  15. - (CGPoint)vertexAtIndex:(NSInteger)index;
  16. - (CGPoint)inTangentAtIndex:(NSInteger)index;
  17. - (CGPoint)outTangentAtIndex:(NSInteger)index;
  18. @end
  19. NS_ASSUME_NONNULL_END