鍍金池/ 問答/C++/ ray tracing in one weekend中第四節(jié)的推導(dǎo)公式?為什么|

ray tracing in one weekend中第四節(jié)的推導(dǎo)公式?為什么|p-c|^2=y^2+z^2???

clipboard.png

回答
編輯回答
故林

It must be a typographical error. There is no doubt that


$$\mathrm{dot}((p - C),(p - C)) = (x - cx) \cdot (x-c) + (y - cy) \cdot (y - cy) + (z - cz) \cdot (z - cz)$$


$\text{BTW}, \ \ \ \cdot \ \ \ \text{is much more popular than} \ \ \ \ \times \ \ \ \ \ \ast \ \ \ \ \ \text{in mathematics}$

2018年8月24日 08:03