mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-12-11 21:44:29 +00:00
31 lines
796 B
C
31 lines
796 B
C
|
#import <Foundation/NSObject.h>
|
||
|
#import <CoreGraphics/CoreGraphics.h>
|
||
|
|
||
|
@interface CIVector : NSObject {
|
||
|
size_t _count;
|
||
|
CGFloat *_values;
|
||
|
}
|
||
|
|
||
|
+(CIVector *)vectorWithValues:(const CGFloat *)values count:(size_t)count;
|
||
|
|
||
|
+(CIVector *)vectorWithX:(CGFloat)x;
|
||
|
+(CIVector *)vectorWithX:(CGFloat)x Y:(CGFloat)y;
|
||
|
+(CIVector *)vectorWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z;
|
||
|
+(CIVector *)vectorWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z W:(CGFloat)w;
|
||
|
|
||
|
-initWithValues:(const CGFloat *)values count:(size_t)count;
|
||
|
-initWithX:(CGFloat)x;
|
||
|
-initWithX:(CGFloat)x Y:(CGFloat)y;
|
||
|
-initWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z;
|
||
|
-initWithX:(CGFloat)x Y:(CGFloat)y Z:(CGFloat)z W:(CGFloat)w;
|
||
|
|
||
|
-(size_t)count;
|
||
|
-(CGFloat)valueAtIndex:(size_t)index;
|
||
|
|
||
|
-(CGFloat)X;
|
||
|
-(CGFloat)Y;
|
||
|
-(CGFloat)Z;
|
||
|
-(CGFloat)W;
|
||
|
|
||
|
@end
|