Parent Directory | Revision Log | Patch
revision 1.1.1.1 by delpinux, Mon Feb 17 16:32:51 2003 UTC | revision 1.2 by delpinux, Fri Aug 8 08:39:56 2003 UTC | |
---|---|---|
# | Line 31 Tetrahedron::Tetrahedron(Vertex& x0, | Line 31 Tetrahedron::Tetrahedron(Vertex& x0, |
31 | __vertices[2] = &x2; | __vertices[2] = &x2; |
32 | __vertices[3] = &x3; | __vertices[3] = &x3; |
33 | ||
34 | TinyVector<3> A = x1.Vector3() - x0.Vector3(); | TinyVector<3> A = x1 - x0; |
35 | TinyVector<3> B = x2.Vector3() - x0.Vector3(); | TinyVector<3> B = x2 - x0; |
36 | TinyVector<3> C = x3.Vector3() - x0.Vector3(); | TinyVector<3> C = x3 - x0; |
37 | ||
38 | __volume = 1./6.*((A^B)*C); | __volume = 1./6.*((A^B)*C); |
39 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |