【笔记】计算几何

· · 个人记录

1 前置知识

1.1 前置知识的前置知识

1.1.1 三角函数

如图,是一个直角三角形:

我们将线段 a 称为 ∠ \theta 的对边,

将线段 b 称为 ∠ \theta 的邻边,

将线段 c 称为 ∠ \theta 的斜边,

![](https://img0.baidu.com/it/u=3291886667,2938868046&fm=253&fmt=auto&app=138&f=JPEG?w=641&h=258) $\cos \theta = \frac{b}{c}$ , $\cos$ 函数的图像如下:' ![](https://edu-tiku.cdn.bcebos.com/originalpic/3d93807c3287f904c67ca9b50f9cfccd.jpg?authorization=bce-auth-v1/ceae51ce68104d68be6f9ad6f91bceee/2021-10-14T18:42:10Z/630720000//3d529de9eca67c5bc5bda70f4c20f3d7cf64a2b59da388c7f50b928a96b4d755) $\tan \theta = \frac{a}{b}$ 。 ### 1.1.2 特殊角度的弧度及特殊函数值 $90\degree = \frac{\pi}{2}(弧度) 180\degree = \pi(弧度) 360\degree = 2\pi(弧度) \cos \pi = -1

1.2 反三角函数

即三角函数的相反函数,已知三角函数的值求出原值,

\sin \theta = x,则\arcsin x=\theta

\cos \theta = x,则\arccos x=\theta

\tan \theta = x,则\arctan x=\theta

※ 在 c++ 中的应用:求 \pi 值——\cos \pi = -1

const double pi=acos(-1);//c++自带函数

1.3 ※ 余弦定理

对于任意三角形:

c^2=a^2+b^2-2ab\cos\theta