|
[分享]科锐学员版块对外开放了
必须来顶下 |
|
[讨论][讨论]玛雅人预言的日期就要来了,大家还在敲代码吗?
最悲催的不是末日将要来临,而是你以为末日要来了,把钱都捐了,把疯狂的事儿都干了一遍,可第二天太阳还是照样的升起。。。。。。。。。 |
|
精通c/c++是什么意思?
往往是懂的越多发现自己不懂的越多。 刚毕业找工作在自己简历上些精通c/c++的,八成都不怎么靠谱,学校里学了几年,现在出来工作自己独立完成一个项目了,也算用了几年c++吧,我觉得自己也就略懂。精通c++是在不敢写啊。 |
|
[求助]矩阵运算意义
这几天我也找了一些资料,后来在同事推荐的一本《3D游戏基础:图形与游戏开发》中找到了我想要的答案,现在发出来给大家分享下: 要知道矩阵为什么能变换向量我们要先知道向量以及向量加法,以及一些定义。 向量定义:向量是有大小和方向的有向线段。 向量加法法则:两个向量相加,将对应的分量相加就可以了。如:a[1,2];b[3,4],a+b = [1+3,2+4] 向量加法的几何解释:平移向量,使向量a的头连接向量b的尾,接着从a的尾向b的头画一个向量,这条向量就是向量a+b的结果。这种理解方式叫做向量加法的“三角形法则”。 通过三角形法则我们可以将向量[a,b],理解为向量[a,0]+向量[0,b],也就是说每一个向量都能解释为沿对应坐标轴移动对应的量然后相加。 单位向量定义:单位向量就是模为1的向量,(通俗的讲法就是长度为1的向量)。一般将沿着坐标轴正方向的单位向量叫做:(某坐标轴的单位向量)。如:向量p[1,0,0]就是x轴的单位向量。 标量与向量的乘法法则:向量[x,y] 乘 标量 k 等于 向量[kx,ky]。如:3[1,2,3] = [3*1,3*2,3*3]。 下面有意思的来了: 通过上面说明,我们可以知道对任意向量v都能写成为扩展形式: v = [x,y,z] = [x,0,0,] + [0,y,0] + [0,0,z] 另一种略有差别的形式为: v = [x,y,z] = x[1,0,0] + y[0,1,0] + z[0,0,1] (某人喷:这不是P话吗,有什么意义呢) 有意思的是上面数学上一模一样的东西在理解上却有质的变化。 上面一种向量v被理解为:3个与坐标系平行的向量的相加。 下面一种向量v被理解为:x,y,z轴单位向量的线性变换之和的结果。(想象一下3个坐标轴的单位向量被一双手拉来拉去的变换,最后这3个向量相加就成了向量v) 现在我们用向量p,g,r表示x,y,z轴的单位向量,再代入v = [x,y,z] = x[1,0,0] + y[0,1,0] + z[0,0,1]里就会得到:v = xp + yq +zr。 用p,q,r组成一个矩阵然后用一个向量去乘以该矩阵,得到: [px,0,0] [x,y,z]*[0,qy,0] = [xp,yq,zr] = xp+yq+zr。[注:px指,单位向量p在x坐标轴上的分量,qy与rz同理] [0,0,rz] (汗:这样表示矩阵应该看得懂吧) 发现了吧这和前面计算转换后的v的等式相同。 所以向量乘矩阵就是这个向量变换到了这个矩阵所表示的坐标系中,得到变换后的向量在原坐标系中的表示位置。 以上我是的理解,为了让大家有更深入的理解或是另一种理解方式,我将书上的原话发一遍: 如果把矩阵的行为解释为坐标系的基向量,那么乘以该矩阵就相当于执行了一次坐标转换。若有aM = b,我们就可以说,M将a转换到了b。 最后,如果有什么地方写的不对的请大家指正,谢谢。 |
|
[原创]最适合新手的破解,真的不能再在简单了(只要看了就会的破解)[申请注册码]
建议最好图文结合,话说:“有图有真相”。这样方便理解。 |
|
|
|
东山再起 我又回来了
新人来喽,赚钱转正 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值