2D仿射变换(AffineTransform)主要函数://获取变换矩阵M=[A B] warp_mat = getAffineTransform(srcTri, dstTri);//获取旋转矩阵 rot_mat = getRotationMatrix2D(center, angle, ...
分类:
其他好文 时间:
2014-12-18 18:41:34
阅读次数:
282
compute the angle between hour hand and minute handinput: hh:mmoutput: out a float that means the angle of inferior arceg: 03:00 14:45 outpu...
分类:
其他好文 时间:
2014-12-17 23:53:11
阅读次数:
214
?
function drawImg(angle)
{
canvas.width = canvas.width;
var distance = size / 2 * Math.sqrt(2) * Math.sin(angle * Math.PI / 180 / 2) * 2;
var degree = 180 - 45 - (180 - angle) / 2;
...
分类:
编程语言 时间:
2014-12-15 17:25:26
阅读次数:
208
Qt_OpenGL:3D空间中移动图像
//.h
#ifndef GLWIDGET_H
#define GLWIDGET_H
#include
#include
class QGLWidget;
class QTimer;
typedef struct Stars{
public:
int r, g, b;
GLfloat dist, angle;...
分类:
移动开发 时间:
2014-12-12 08:53:22
阅读次数:
215
使用三角形或者多边形结合在一起,我们可以绘制实心物体(3D物体)。本篇中使用三角形绘制圆锥形。
下面测试第一个OpenGL程序:
void renderScene(void)
{
float angle;
float x, y;
static int triangleNum = 1;
//清除颜色缓冲区和深度缓冲区
glClear(GL_COLOR_BUFFER_BIT | GL_D...
分类:
其他好文 时间:
2014-12-11 15:47:44
阅读次数:
241
Selector的结构描述: shape的结构描述: android:endColor="#FFFFFF" android:angle="270" /> 下面是上面属性的说明solid:实心,就是填充的意思android:color指定填充的颜色...
分类:
移动开发 时间:
2014-12-10 15:51:04
阅读次数:
231
tesb::tesb(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
}
void tesb::DrawCustomLine(QPainter& _painter, double _angle, double _len, const QString& _name, const QColor& _color)
{
// 初始化
...
分类:
其他好文 时间:
2014-12-09 12:20:28
阅读次数:
226
SpotLight方法根据设置灯光的颜属性color, 强度属性intensity,距离属性 distance,灯光的照射角度 angle,衰减速度 exponent 创建聚光灯光源(射灯).
SpotLight对象的功能函数采用定义构造的函数原型对象来实现.
NOTE: SpotLight类型灯光实现了阴影,但是需要在场景中使用MeshLambertMaterial或者MeshPhongMaterial
下面一些注释直接摘抄自:http://www.cnblogs.com/yiyezhai/archi...
分类:
Web程序 时间:
2014-12-06 15:28:28
阅读次数:
262
如果是自己通过repo和git直接从google官网上download的源码,就不会有这个问题,但是由于google在国内被限制登录,通过这一种方法不是每个人都能download下来源码,通常的做法就是从别人那拷贝,然后自己编译,那么通常会出现下面的错误:
No rule to make target 'external/chromium_org/third_party/angle/.g...
分类:
移动开发 时间:
2014-11-27 14:30:55
阅读次数:
181
var canvas = document.getElementById('canvas')var context = canvas.getContext('2d')var angle = 0function move() { context.clearRect(0,0,canvas.widt...
分类:
其他好文 时间:
2014-11-25 18:08:58
阅读次数:
190