摘要: 1.向量Vector3d 1 using System; 2 3 namespace RGeos.Geometry 4 { 5 /// 6 /// 3D向量类 7 /// 8 public class Vector3d 9 { 10 public double[] vector; 11 private const double E = 0.0000001f; 12 /// 13 /// 14 /// 15 /// 16 ... 阅读全文
posted @ 2013-11-23 12:35 太一吾鱼水 阅读(536) 评论(0) 推荐(0) 编辑
摘要: -1.判断两个线段是否平行 1 inline bool parallel_seg_seg(Segment_2 S1, Segment_2 S2) 2 { 3 Vector_2 u(S1); 4 Vector_2 v(S2); 5 Vector_2 w = S1.source() - S2.sourc 阅读全文
posted @ 2013-11-23 12:25 太一吾鱼水 阅读(784) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2013-11-23 10:33 太一吾鱼水 阅读(33) 评论(0) 推荐(0) 编辑