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

Exact the reverse

This commit is contained in:
Meow J
2016-07-04 14:48:32 +08:00
parent 6e6f2113d4
commit f99ab1f1db

View File

@@ -127,7 +127,7 @@ $$
译注:通过上面点乘定义式可推出:
$$
\cos \theta = \frac{||\bar{v}|| \cdot ||\bar{k}||}{\bar{v} \cdot \bar{k}}
\cos \theta = \frac{\bar{v} \cdot \bar{k}}{||\bar{v}|| \cdot ||\bar{k}||}
$$
所以,我们如何计算点乘?点乘是按分量逐个相乘,然后再把结果相加。两个单位向量点乘就像这样(你可以用两个长度为1的验证)