坐标系
左图是左手坐标系 右图是右手坐标系
Direct3d用的是左手坐标系
顶点和法向
光栅化
变换
1世界变换
2观察变换
D3DXMATRIX out;
D3DXVECTOR3 eye(2,3,3);
D3DXVECTOR3 at(0,0,0);
D3DXVECTOR3 up(0,1,0);
D3DXMatrixL...
分类:
其他好文 时间:
2014-09-29 14:27:50
阅读次数:
150
Linux系统下启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be
looked up with
摘要
Linux系统下安装完MySQL,启动MySQL报错:Neither host 'localhost.localdomain' nor 'localhost' could be looke...
分类:
数据库 时间:
2014-09-29 00:54:07
阅读次数:
693
【题目】Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?【题意】 推断一个单向链表是否有环【思路】 维护两个指针p1和p2,p1.....
分类:
其他好文 时间:
2014-09-28 21:16:55
阅读次数:
195
DescriptionDuring winter, the most hungry and severe time, Holedox sleeps in its lair. When spring comes, Holedox wakes up, moves to the exit of its l...
分类:
其他好文 时间:
2014-09-28 19:37:15
阅读次数:
519
以下是调节音量的流程: Step_1.首先在调节机台Volume_Up_Key & Volume_Down_Key操作时,系统会调用到AudioManager.java中handleKeyUp & handleKeyDown函数,以 handleKeyDown函数为例: 1 public void....
分类:
其他好文 时间:
2014-09-28 17:48:03
阅读次数:
210
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-09-27 23:31:00
阅读次数:
186
[root@server55 ~]# w 15:21:57 up 6:55, 7 users, load average: 1.17, 1.46, 1.38 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/1 192.168.2.111 15...
分类:
其他好文 时间:
2014-09-27 16:47:30
阅读次数:
230
Logstash+Elasticsearch+Kibana+S3+NginxbuildourprivatelogquerysystemSystemstructureHowtosetupLogstash-index(Logstashserver)yum-yinstalljava-1.7.0-openjdkInstallandconfigureElasticsearch(Logstash1.4.2recommendsElasticsearch1.1.1)rpm--importhttp://packages.ela..
分类:
其他好文 时间:
2014-09-27 09:56:30
阅读次数:
322
DescriptionIn the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Play...
分类:
其他好文 时间:
2014-09-27 00:10:38
阅读次数:
444
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
思路:先沿着主对角线交换矩阵内的数字,然后沿中间列交换。
public class Soluti...
分类:
其他好文 时间:
2014-09-26 20:59:28
阅读次数:
138