官术网_书友最值得收藏!

Chapter 3: Implementing Matrices

In the context of game animation, a matrix represents an affine transformation. It linearly maps points from one space to another. A mesh is represented by vertices, which are just points in space. These vertices are moved by multiplying them by a matrix.

In this chapter, you will learn matrix math and how to implement matrices in code. By the end of this chapter, you will have built a robust matrix library that can be used in any project. Matrices are important; they play a big role in the graphics pipeline. It's hard to render anything without using matrices.

You will only need to implement a square, 4 x 4 matrix. By the end of this chapter, you should be able to do the following:

  • Understand what a matrix is
  • Understand column-major matrix storage
  • Multiply matrices together
  • Invert a matrix
  • Transform points and vectors by using a matrix
  • Understand how to create matrices to view a three-dimensional world

    Important information

    In this chapter, you will implement a 4 x 4 matrix. The matrix implementation will rely on code to demonstrate concepts, rather than through the format of math definitions. If you're interested in the formal math behind matrices, check out https://gabormakesgames.com/matrices.html.

主站蜘蛛池模板: 道孚县| 甘孜| 杭锦后旗| 九寨沟县| 文安县| 宣武区| 江门市| 湾仔区| 贺兰县| 通城县| 平邑县| 东城区| 公主岭市| 陆丰市| 旬邑县| 辛集市| 元阳县| 上杭县| 莒南县| 山丹县| 陇南市| 镇原县| 石阡县| 镇雄县| 衡山县| 滕州市| 鸡东县| 深泽县| 潞城市| 门头沟区| 琼中| 尼勒克县| 永靖县| 于都县| 南开区| 葵青区| 于都县| 银川市| 临清市| 大方县| 奇台县|