摘要: UVA12304 2D Geometry 110 in 1! 计算几何 基础函数都在里面啦! \(Code:\) #include<iostream> #include<cstdio> #include<algorithm> #include<cmath> #include<string> #inc 阅读全文
posted @ 2021-01-05 20:55 GK0328 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 计算几何基本采用向量来表示点、线、面等基本元素,而非我们平时常用的解析式。 向量的基础运算法则: 给定两个向量$p(x_1,y_1),q(x_2,y_2)$。 加法:\(p+q=(x_1+x_2,y_1+y_2)\) 减法:\(p-q=(x_1-x_2,y_1-y_2)\) 数乘:\(\lambda 阅读全文
posted @ 2021-01-05 11:12 GK0328 阅读(109) 评论(0) 推荐(0) 编辑