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

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.

主站蜘蛛池模板: 阿尔山市| 东平县| 凉城县| 通辽市| 法库县| 宁陵县| 霍城县| 凤阳县| 南川市| 长沙市| 台北市| 德庆县| 双峰县| 彭山县| 阿城市| 阜平县| 周宁县| 巨野县| 华宁县| 彩票| 敖汉旗| 菏泽市| 泽普县| 遵化市| 苏州市| 班玛县| 黔江区| 克拉玛依市| 肥东县| 黔西| 呈贡县| 洪泽县| 枝江市| 淮滨县| 宁阳县| 离岛区| 济阳县| 刚察县| 唐海县| 通山县| 综艺|