- C++ Game Development By Example
- Siddharth Shekar
- 261字
- 2021-06-24 14:26:14
Points
After we have defined the coordinate system, we can now specify what a point is. A 3D point is a location in 3D space specified by distance in the X, Y and Z axis from the origin of the coordinate system. It is specified as (X, Y, Z) where X, Y and Z are the distance from the origin. But what is this origin you speak of? Origin is also a point where the 3 axes meet. The origin is at (0, 0, 0), and the location of the origin is specified in the coordinate system, as shown as follows:

For specifying points within a coordinate system, imagine that in each direction, the axis is made of a smaller unit. This unit could be 1 millimeter, 1 centimeter or 1 kilometer, for example, depending upon how much data you have.
If we just look at the X and Y axis, this would look something like the picture as follows:

If we look at the X axis, the value 1 and 2 specify the distance along the axis of that point from the origin which is at value 0. So, point 1 in the X axis is at (1,0,0) along the X axis. Similarly, point 1 along the Y -axis is at (0,1,0).
In addition, the location of the red dot will be at (1,1,0) - that is, 1 unit along the X axis and 1 along the Y axis. Since Z is 0 we specify the value of it as 0.
Similarly, points in 3D space are represented as as follows:

- 筆記本電腦使用、維護與故障排除實戰
- Linux運維之道(第2版)
- 現代辦公設備使用與維護
- 計算機應用與維護基礎教程
- Getting Started with Qt 5
- 從零開始學51單片機C語言
- 分布式微服務架構:原理與實戰
- Large Scale Machine Learning with Python
- OpenGL Game Development By Example
- SiFive 經典RISC-V FE310微控制器原理與實踐
- 微型計算機系統原理及應用:國產龍芯處理器的軟件和硬件集成(基礎篇)
- Source SDK Game Development Essentials
- Spring Cloud微服務和分布式系統實踐
- 筆記本電腦芯片級維修從入門到精通(圖解版)
- Mastering Machine Learning on AWS