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

Understanding the coordinates system

In the last section while working on the size of the graphical shapes, we understood that when a square object with size 4, it will cover the whole GEM window. In the polygon and curve examples, we learned that each point in the GEM window corresponds to a point in three-dimensional space.

The GEM window is a two-dimensional projection plane of a three-dimensional space. The origin (0, 0, 0) is the center of the window. The horizontal axis is the x axis. Toward the right-hand side is the increasing value of x. The vertical axis is the y axis. Moving upward increases the value of y. For the z axis, you have to imagine a line moving from the center of the GEM window toward your eyes:

If we consider all the points with z value equal to zero, it will form a flat surface parallel to the GEM window. On this surface, when we move from the left-hand margin to right-hand margin, the x value changes from -4 to 4. When we move from the bottom margin to the top margin, the y value changes from -4 to 4. The measurement is due to the default settings of the GEM window view properties and is independent of the window's dimension in pixels.

主站蜘蛛池模板: 耒阳市| 牡丹江市| 开原市| 高州市| 张家港市| 保定市| 普格县| 泰州市| 河曲县| 沙雅县| 鹤峰县| 万源市| 河北区| 泰和县| 镇原县| 江永县| 海南省| 永宁县| 芮城县| 金湖县| 临沂市| 喜德县| 珠海市| 利川市| 东乡县| 古田县| 满城县| 固原市| 长沙市| 子长县| 金塔县| 洪江市| 五大连池市| 东乌珠穆沁旗| 集安市| 临澧县| 金湖县| 玛多县| 鹰潭市| 武威市| 平谷区|