Most interactive computer software for business and industry makes use of computer graphics in the screen displays and for other functions, such as
matplotlib
를 생각해볼 것.Consequently, anyone studying a computer language invariably spends time learning how to use at least two-dimensional (2D) graphics.
This section examines some of the basic mathematics used to manipulate and display graphical images.
<aside> 💡 Often,
The capital letter N in Figure 1 is determined by eight points, or vertices. The coordinates of the points can be stored in a data matrix, $D$.
In addition to $D$, it is necessary to specify which vertices are connected by lines, but we omit this detail. $\blacksquare$
<aside> 💡 The main reason graphical objects are described by collections of straight-line segments is that the standard transformations in computer graphics map line segments onto other line segments.
</aside>
Once the vertices that describe an object have been transformed, their images can be connected with the appropriate straight lines to produce the complete image of the original object.