1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00

Update 01-07

This commit is contained in:
Meow J
2016-02-05 21:47:26 +08:00
parent d9bd59850d
commit 44db620a51
2 changed files with 5 additions and 1 deletions

View File

@@ -102,7 +102,11 @@
!!! Important
你可以通过点乘的结果计算两个非单位向量的夹角,点乘的结果分别除两个向量的长度 剩下的就是夹角的cos值,即![](../img/trans/costheta.png)
你可以通过点乘的结果计算两个非单位向量的夹角,点乘的结果分别除两个向量的大小之积,得到的结果就是夹角的余弦值,即![](../img/trans/costheta.png)。
译注:通过上面点乘定义式可推出:
![](../img/trans/costheta2.png)
所以,我们如何计算点乘?点乘是按分量逐个相乘,然后再把结果相加。两个单位向量点乘就像这样(你可以用两个长度为1的验证)

BIN
img/costheta2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB