//
//  GSPathHash.h
//  GlyphsCore
//
//  Created by Georg Seifert on 28.01.18.
//  Copyright © 2018 schriftgestaltung.de. All rights reserved.
//

@interface GSPathHashElement : NSObject <NSSecureCoding, NSCopying>
@property char nodeTag;
@property CGFloat prefDistance;
@property CGFloat angle;
@property CGFloat nextDistance;
@property NSPoint position;
@property CGFloat absoluteAngle;
@end

@interface GSPathHash : NSObject <NSSecureCoding, NSCopying>
@property BOOL closed;
@property CGFloat angle;
@property NSPoint position;

- (void)addElmementWithTag:(char)nodeTag prevDist:(CGFloat)prevDist angle:(CGFloat)angle nextDist:(CGFloat)nextDist pos:(NSPoint)pos absoluteAngle:(CGFloat)absoluteAngle;

- (NSUInteger)count;

- (GSPathHashElement *)elementAtIndex:(NSUInteger)idx;

@end
