Apple
计算机编程之直行,射线与线段相交理论
doorxp 发表于2018-05-30 浏览3848 评论0
计算机编程之直行,射线与线段相交理论在二维空间中,两条直线(射线与线段是一种特例)有如下几种关系:a) 相交(有且只有一个交点)b) 平行(无交点)c) 重叠假想在直线L1上有一个运动的点 M; 那么M的方程使用参数可以表示为M=A+(B-A)t, 其中t 为参
Apple
使用dump抓包简单又方便. iOS
doorxp 发表于2018-05-23 浏览3986 评论0
使用dump抓包简单又方便.主要是以下几步骤:1.绑定UUIDrvictl -s UUID (iPhone设备的UUID)RVI虚拟接口的命令规则可为rvi0,rvi1,。。。,创建后可以使用以下命令查看是否创建成功 ifconfig rvi02.开始抓包并写入文件(文件放在桌面上)tcpdump -i rvi0 -p -vv -s 0 -w ~/Desktop/2014log.pcap3.抓包完成就停止抓包ctrl +&n
ts
egret3d Mesh rotation
doorxp 发表于2018-05-18 浏览4486 评论0
let oMatrix = this.ballMesh.modelMatrix; let matrix = new egret3d.Matrix4_4(); matrix.identity(); matrix.appendRotation(vangle * 60, axis); oMatrix.multiply(matrix); this.ballMesh.orientation.fromMatrix(oMatrix);
ts
dts-gen throw e 不能生成.d.ts,报错
doorxp 发表于2018-05-07 浏览4944 评论0
Unexpected crash! Please log a bug with the commandline you specified.
/opt/local/lib/node_modules/dts-gen-v2/bin/lib/run.js:130
throw e;