07 2011 档案

opengl绘制固定宽度多边形圆角边框算法(历时周半,撰博文以志纪念)II
摘要: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 ... 阅读全文

posted @ 2011-07-27 11:23 yang3wei 阅读(341) 评论(0) 推荐(0)

opengl绘制固定宽度多边形圆角边框算法(历时周半,撰博文以志纪念)
摘要: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... 阅读全文

posted @ 2011-07-26 11:56 yang3wei 阅读(390) 评论(0) 推荐(0)

objective-c使用c数学函数 <math.h>
摘要:转载:在实际工作中有些程序不可避免的需要使用数学函数进行计算,比如地图程序的地理坐标到地图坐标的变换。Objective-C做为ANSI C的扩展,使用C标准库头文件<math.h>中定义的数学常量宏及数学函数来实现基本的数学计算操作,所以不必费神再在Cocoa Foundation中寻找相应的函数和类了。这里列出一些常用宏和数学函数,更详细的信息还是需要去查阅<math.h>头文件。数学常量:#define M_E 2.71828182845904523536028747135266250 // e#define M_LOG2E 1.44269504088896340 阅读全文

posted @ 2011-07-21 18:11 yang3wei 阅读(200) 评论(0) 推荐(0)

MacBook 以及 XCode 使用小结
摘要:// 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机 阅读全文

posted @ 2011-07-20 12:08 yang3wei 阅读(186) 评论(0) 推荐(0)