2014年3月6日

摘要: //求直线 s1 s2 与三角形v0,v1,v2的交点e1 = v1 - v0;e2 = v2 - v0;dir = s2 - s1;p = cross_product(dir, e2);tmp = (num_type)1/(p*e1);s = s1 - v0;u = tmp * s * p;if(u 1){ //the intersection is not in the triangle return;}q = cross_product(s, e1);v = tmp * dir * q;if(v 1){ //the intersection is not in th... 阅读全文
posted @ 2014-03-06 16:42 索罗格 阅读(763) 评论(0) 推荐(0)
摘要: 平行六面体的一个顶点三条边的向量为:a,b,c那么体积为:V = |(axb)*c|同理也可得出:|(axb)*c| = |(axc)*b| = |(bxc)*a|混合积定义:设a ,b ,c是空间中三个向量,则 (a×b)c称为三个向量a,b,c的混合积,记作[a b c]或 (a,b,c) 或 (abc).混合积的几何意义可表示为:平行六面体的体积。混合积的性质:(1) (a,b,c) = (b,c,a) = (c,a,b) = - (b,a,c) = - (a,c,b) = - (c,b,a);(2) a×bc=ab×c.(3) (a,b,c) = 0 则 阅读全文
posted @ 2014-03-06 15:41 索罗格 阅读(5991) 评论(0) 推荐(0)

导航