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

Unit vector

In some cases, we don't care about the magnitude of the vector, we just want to know the direction of the vector. To find this out, we want the length of the vector in the X, Y and Z direction to be equal to 1. Such vectors are called unit vectors or normalized vectors.

In unit vectors, the X, Y, and Z components of the vector are divided by the magnitude to create a vector of unit length. They are denoted by a hat on top of the vector name instead of an arrow. So, a unit vector of A will be denoted as .

When a vector is converted into a unit vector, it is said to be normalized. Meaning the value is always between 0.0 and 1.0. The original value has been rescaled to be in this range. Let's normalize the vector = (3, -5, 7)

First we have to calculate the magnitude of , which we have already done before i.e 9.11

So, unit vector   

                                   = (3 , -5, 7) / 9.11

                                   = (3 / 9.11 , -5 / 9.11, 7 / 9.11)

                                   = (0.33, -0.51, 0.77)

主站蜘蛛池模板: 平乐县| 普宁市| 岫岩| 彩票| 元朗区| 松江区| 南皮县| 峡江县| 金坛市| 开封市| 岳池县| 当雄县| 旌德县| 广德县| 永春县| 阿克| 尚志市| 盱眙县| 东阳市| 浏阳市| 兴安县| 孝昌县| 灵台县| 永仁县| 类乌齐县| 金阳县| 伊宁市| 冕宁县| 独山县| 五华县| 彝良县| 会理县| 丰顺县| 四子王旗| 克东县| 上犹县| 馆陶县| 社旗县| 白城市| 兴文县| 吴旗县|