iphone-common-codes-ccteam源代码 CCPoint.h
来源:互联网 发布:上海 旗袍店 知乎 编辑:程序博客网 时间:2024/06/06 13:06
//// CCPoint.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface CCPoint : NSObject{@public CGFloat x; CGFloat y;}- (id)initWithX:(CGFloat)x withY:(CGFloat)y;+ (id)pointWithX:(CGFloat)aX withY:(CGFloat)aY;- (id)initWithCGPoint:(CGPoint)point;+ (id)pointWithCGPoint:(CGPoint)point;- (void)dealloc;- (BOOL)isEqualTo:(CCPoint *)anotherPoint;- (BOOL)isEqualToCGPoint:(CGPoint)point;- (BOOL)isZero;- (void)setX:(CGFloat)newX withY:(CGFloat)newY;- (BOOL)isInRect:(CGRect)rect;//判断某个点是否在某个区域里+ (BOOL)isInRect:(CGPoint)p rect:(CGRect)rect;- (CGPoint)toCGPoint;// get the distance of two CCPoint- (CGFloat)distanceToCCPoint:(CCPoint *)anotherPoint;@end可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCPoint.h
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCPoint.h
- iphone-common-codes-ccteam源代码 CCPoint.h
- iphone-common-codes-ccteam源代码 CCPoint.m
- iphone-common-codes-ccteam源代码 CCAddressBook.h
- iphone-common-codes-ccteam源代码 CCAudio.h
- iphone-common-codes-ccteam源代码 CCAutoDisappearView.h
- iphone-common-codes-ccteam源代码 CCBaseTipView.h
- iphone-common-codes-ccteam源代码 CCCALayer.h
- iphone-common-codes-ccteam源代码 CCCamera.h
- iphone-common-codes-ccteam源代码 CCCommon.h
- iphone-common-codes-ccteam源代码 CCCompile.h
- iphone-common-codes-ccteam源代码 CCConfig.h
- iphone-common-codes-ccteam源代码 CCContact.h
- iphone-common-codes-ccteam源代码 CCDebug.h
- iphone-common-codes-ccteam源代码 CCDelete.h
- iphone-common-codes-ccteam源代码 CCDepend.h
- iphone-common-codes-ccteam源代码 CCDylib.h
- iphone-common-codes-ccteam源代码 CCEmoji.h
- iphone-common-codes-ccteam源代码 CCEncoding.h
- 培养我们的目标感
- 腾讯 vs 百度
- C/C++内存泄漏及检测
- iphone-common-codes-ccteam源代码 CCPlistFileWritter.m
- UML用例图概要
- iphone-common-codes-ccteam源代码 CCPoint.h
- 长度限制
- java 执行jar 使用
- ubuntu中安装deb、bin、rpm、及源程序文件
- iphone-common-codes-ccteam源代码 CCPoint.m
- 差动保护原理
- iphone-common-codes-ccteam源代码 CCRadix.h
- sed命令简记
- ABAP/4 Open SQL