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

Vectors

You can also think of the position (4, 3) as an offset from the (0, 0) point, or origin. Imagine an arrow pointing from the origin to the point:

This arrow is a vector. It represents a great deal of useful information including the point's location, (4, 3), its length, m, and its angle from the x-axis, θ. Altogether, this is a position vector, in other words, it describes a position in space. Vectors can also represent movement, acceleration, or any other quantity that has an x and a y component.

In Godot, vectors (Vector2 for 2D or Vector3 for 3D) are widely used, and you'll use them in the course of building the projects in this book.

主站蜘蛛池模板: 湘潭市| 江门市| 潜江市| 礼泉县| 民权县| 霍州市| 巴青县| 定远县| 苍山县| 襄汾县| 淄博市| 高碑店市| 玛曲县| 和静县| 杭锦后旗| 静安区| 泰兴市| 车致| 长岭县| 潍坊市| 西峡县| 东明县| 汶上县| 武冈市| 三门峡市| 方城县| 漠河县| 西乌珠穆沁旗| 上栗县| 桓仁| 秭归县| 鄂托克旗| 云南省| 嘉善县| 阳原县| 富蕴县| 罗江县| 凌源市| 新宁县| 平昌县| 故城县|