1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
Matej Jan d04d7bf8f3 All around update and fixes
git-svn-id: http://xni.googlecode.com/svn/XNI@104 ac433895-eea3-a490-d80a-17149a75e588
2012-05-14 08:40:49 +00:00

44 lines
1.0 KiB
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*) add:(XniPoint*)value1 to:(XniPoint*)value2;
+ (XniPoint*) subtract:(XniPoint*)value1 by:(XniPoint*)value2;
- (XniPoint*) set:(XniPoint*)value;
- (XniPoint*) add:(XniPoint*)value;
- (XniPoint*) subtract:(XniPoint*)value;
- (BOOL) equals:(XniPoint*)point;
+ (XniPoint*) zero;
@end