摘要:BYLineII.h//
// BYLineII.h
// SuperBalance1.1
//
// Created by Bruce Yang on 7/26/11.
// Copyright 2011 Home. All rights reserved.
// @protocol BYLineII struct BYLine { float k; float b; BOOL kExists; float extraX;
};
typedef struct BYLine BYLine; @end
GenericBase.mm//
// GenericBase.mm
...
阅读全文
摘要:CGPoint.javapackage org.bruce.roundcorner.core; /** * @author BruceYang */
public class CGPoint { public float x; public float y; public CGPoint() { } public CGPoint(float x, float y) { this.x = x; this.y = y; } @Override public String toString() { return "x=" + this.x + ", y...
阅读全文
摘要:转载:在实际工作中有些程序不可避免的需要使用数学函数进行计算,比如地图程序的地理坐标到地图坐标的变换。Objective-C做为ANSI C的扩展,使用C标准库头文件<math.h>中定义的数学常量宏及数学函数来实现基本的数学计算操作,所以不必费神再在Cocoa Foundation中寻找相应的函数和类了。这里列出一些常用宏和数学函数,更详细的信息还是需要去查阅<math.h>头文件。数学常量:#define M_E 2.71828182845904523536028747135266250 // e#define M_LOG2E 1.44269504088896340
阅读全文
摘要:// Xcode 最最基本的常用快捷键(想看效果的话执行比调试应该要快):// 1.在所属范围内修改所有变量名:control + command + t;// 2.在 .m文件和 .h文件之间切换:alt + command + up;// 3.智能提示: command + ,; command + .; command + esc;// 4.查看控制台输出:shift + command + r;// 5.复制代码:command + c;// 6.剪切代码:command + x;// 7.粘贴代码:command + v;// 8.全选代码:command + a;// 8.mac机
阅读全文