1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
2010-12-14 23:28:16 +00:00

38 lines
834 B
Objective-C

//
// XniPoint.h
// XNI
//
// Created by Matej Jan on 8.12.10.
// Copyright 2010 Retronator. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "Retronator.Xni.Framework.classes.h"
@interface XniPoint : NSObject <NSCopying> {
PointStruct data;
}
- (id) initWithIntX:(int)x y:(int)y;
- (id) initWithPointStruct:(PointStruct*) pointStruct;
- (id) initWithPoint:(XniPoint*) point;
+ (XniPoint*) pointWithX:(int)x y:(int)y;
+ (XniPoint*) pointWithStruct:(PointStruct*) pointStruct;
+ (XniPoint*) pointWithPoint:(XniPoint*) point;
+ (XniPoint*) pointWithCGPoint:(CGPoint) cgPoint;
@property (nonatomic) int x;
@property (nonatomic) int y;
@property (nonatomic, readonly) PointStruct *data;
- (XniPoint*) set:(XniPoint*)value;
- (BOOL) equals:(XniPoint*)point;
+ (XniPoint*) zero;
@end