标签:operations matrix point sinU coordinates cosU Appendix matrices
Great Microprocessors of the Past and Present (V 13.4.0) (cpushack.com)
3-D points are generally stored in four element vectors, defined as:
[X, Y, Z, W]
...where X, Y, and Z are the point 3-D coordinates, and W is the 'weight', and is used to normalise the result after an operation, multiplying each element by 1/W so that W ends equal to 1.
Points can be moved around by matric multiplication with 4X4 transformation matrices. Multiplying a vector with a matric produces a new vector, which is the transformed point. Standard transformation matrices are:
Identity (does not transform point): [ 1 0 0 0 ] [ 0 1 0 0 ] [ 0 0 1 0 ] [ 0 0 0 1 ] Translate (move along X, Y, Z axes): [ 1 0 0 0 ] [ 0 1 0 0 ] [ 0 0 1 0 ] [ Tx Ty Tz 1 ] Scale (translate to larger or smaller coordinates): [ Sx 0 0 0 ] [ 0 Sy 0 0 ] [ 0 0 Sz 0 ] [ 0 0 0 1 ] Rotate (around X, Y, or Z axis by angle U): Axis X: Axis Y: Axix Z: [ 1 0 0 0 ] [cosU 0 -sinU 0 ] [cosU sinU 0 0 ] [ 0 cosU sinU 0 ] [ 0 1 0 0 ] [-sinU cosU 0 0 ] [ 0-sinU cosU 0 ] [sinU 0 cosU 0 ] [ 0 0 1 0 ] [ 0 0 0 1 ] [ 0 0 0 1 ] [ 0 0 0 1 ] Perspective (d is the distance of "eye" behind "screen"): [ 1 0 0 0 ] [ 0 1 0 0 ] [ 0 0 1 0 ] [ 0 0 1/d 0 ]
Transformation matrices can be combined by multiplying them together, so a single matrix can be use to shift, rotate, and scale a point in a single operation. Other 3-D operations using vectors are also frequently used, such as to determine intersection points or the reflection of light rays.
六级/考研单词: coordinate, norm, translate, axis, rotate, seldom, junction, ray
标签:operations,matrix,point,sinU,coordinates,cosU,Appendix,matrices 来源: https://www.cnblogs.com/funwithwords/p/15957346.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。