- C++ Game Development By Example
- Siddharth Shekar
- 297字
- 2021-06-24 14:26:14
Vectors
A vector is a quantity that has a magnitude and a direction. Examples of quantities that have a magnitude and direction are displacement, velocity, acceleration and force. With displacement, you can specify the direction as well as the net distance moved by the object.
The difference between speed and velocity is that speed only specifies the speed with which any object is moving but doesn't establish the direction the object is moving in. However, velocity specifies the magnitude, which includes the speed and the direction. Similar to velocity, we have acceleration. A form of acceleration is gravity, and we know that this always acts downwards and is always approximately. 9.81 m/s2 . Well atleast on Earth. It is 1/6th of this on the moon.
An example of force is weight. Weight also acts downwards and is calculated as mass multiplied acceleration.
Vectors are graphically represented by a pointed line segment with the length of the line denoting the magnitude of the vector and the pointed arrow showing the direction of the vector. We can move around a vector as doing this doesn't change the magnitude or the direction of it.
Two vectors are said to be equal if they both have the same magnitude and direction even if they are in different locations. Vectors are denoted by arrow marks above the letter
The as follows vectors and
are starting in different locations. Since the direction and magnitude of the arrows are the same, they are equal:

In a 3D coordinate system, a vector is specified by the coordinates with respect to the coordinate system. In the example as follows, the vector is equal to (2, 3, 1) and is also denoted as is denoted as:



- Intel FPGA/CPLD設(shè)計(基礎(chǔ)篇)
- Cortex-M3 + μC/OS-II嵌入式系統(tǒng)開發(fā)入門與應(yīng)用
- 電腦軟硬件維修大全(實例精華版)
- 辦公通信設(shè)備維修
- 深入淺出SSD:固態(tài)存儲核心技術(shù)、原理與實戰(zhàn)
- 電腦常見故障現(xiàn)場處理
- 現(xiàn)代辦公設(shè)備使用與維護(hù)
- 嵌入式系統(tǒng)設(shè)計教程
- micro:bit魔法修煉之Mpython初體驗
- 電腦維護(hù)365問
- VCD、DVD原理與維修
- 筆記本電腦維修300問
- 筆記本電腦維修實踐教程
- 單片機(jī)開發(fā)與典型工程項目實例詳解
- 龍芯自主可信計算及應(yīng)用