1 PVector p1,p2,n; 2 float d = 0; 3 4 void setup() 5 { 6 size(600,600); 7 8 p1 = new PVector(150,30);//线段第一个端点 9 p2 = new PVector(-25,-100);//线段第二个端点 ... ...
分类:
其他好文 时间:
2018-07-05 21:44:08
阅读次数:
292
https://mp.weixin.qq.com/s/BMkLLuagbhRSWspzeGhK7g Post-Processing Stack后期处理特效包能够轻松创建和调整高质量视觉效果,实现更为惊艳而逼真的特效。在Unity 2018.1 beta版本推出后,我们根据用户的反馈为Post-Pro ...
分类:
其他好文 时间:
2018-07-05 13:24:51
阅读次数:
325
using System;using System.Collections.Generic;using System.Linq;using System.ServiceModel;using System.ServiceModel.Channels;using System.Web;using Sy ...
We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, ...
分类:
其他好文 时间:
2018-07-01 23:08:22
阅读次数:
307
Ren, Shaoqing, et al. “Faster R-CNN: Towards real-time object detection with region proposal networks.” Advances in Neural Information Processing Syst ...
分类:
编程语言 时间:
2018-06-30 18:52:51
阅读次数:
329
在上章和上上上章: 28.QT-QPainter介绍 30.QT-渐变之QLinearGradient、 QConicalGradient、QRadialGradient 学习了QPainter基础绘制后,接下来,来学习QPainter其它函数之rotate()函数 首先来看看QPainter其它函 ...
分类:
其他好文 时间:
2018-06-30 10:56:58
阅读次数:
251
1.rotate:2D旋转,以上为0度正数顺时针,负数逆时针。 2.translate:可以分开写translateX()和translateY(),括号里面具体的值。 合并写translate(x,y);例:translate(200px,50%)。 3.scale:大小,x和y方向拉升或压缩。也... ...
分类:
Web程序 时间:
2018-06-28 01:01:26
阅读次数:
173
采用filebeat收集日志,日志文件频繁rotate,造成filebeat占用文件不释放,只要filebeat保持着被删除文件Open状态,操作系统就不释放磁盘空间,导致可用磁盘空间逐渐减小。使用lsof命令查看filebeat保持着的文件资源,可以发现许多被filebeat占用空间的失效文件(deleted)文件。deleted状态的文件没有释放,始终占据磁盘空间解决办法:查看filebeat
分类:
系统相关 时间:
2018-06-26 14:30:11
阅读次数:
285
题目链接 题目大意:顺时针一次旋转矩阵。例子如下: 法一:新开辟一个数组空间,将每一行的数值赋值给每一列。代码如下(耗时3ms): 1 public void rotate(int[][] matrix) { 2 int[][] res = new int[matrix.length][matrix ...
分类:
其他好文 时间:
2018-06-22 13:39:38
阅读次数:
166
//模型一 单个相机底座大小 module cam_1(xl,yl,zl,xd,yd,zd,jd){ translate([sin(0),cos(90),0])rotate([xd,yd,zd]) cube([xl,yl,zl],center=true); //挡板最外侧 179/2 半个基线 4/... ...
分类:
其他好文 时间:
2018-06-20 21:12:24
阅读次数:
115