Go to the documentation of this file.
40 : r_min(0.), r_max(0.)
56 if(number_of_plane==1)
77 { invdir.
setX(1.0 / RayDir.
x()); }
80 { invdir.
setY(1.0 / RayDir.
y()); }
83 { invdir.
setZ(1.0 / RayDir.
z()); }
87 Vcross( dir2, RayDir, dir1);
89 Vadd2(p2, RayOrigin, RayDir);
90 Vadd2(p3, RayOrigin, dir1);
91 Vadd2(p4, RayOrigin, dir2);
113 f = std::fabs(in.
x());
116 if( std::fabs(in.
y()) < f )
118 f = std::fabs(in.
y());
122 if( std::fabs(in.
z()) < f )
129 f = std::sqrt((in.
y())*(in.
y())+(in.
z())*(in.
z()));
135 f = std::sqrt((in.
z())*(in.
z())+(in.
x())*(in.
x()));
139 f = std::sqrt((in.
x())*(in.
x())+(in.
y())*(in.
y()));
230 Vcross( plane1, B_A, C_A );
242 Vscale( plane1, pl2, mag );
245 plane1.
d =
Vdot( plane1, a );
257 "Invalid zero direction given !");
269 a.
a = b.
y() * c.
z() - b.
z() * c.
y() ;
270 a.
b = b.
z() * c.
x() - b.
x() * c.
z() ;
271 a.
c = b.
x() * c.
y() - b.
y() * c.
x() ;
277 a.
setX(b.
y() * c.
z() - b.
z() * c.
y()) ;
278 a.
setY(b.
z() * c.
x() - b.
x() * c.
z()) ;
279 a.
setZ(b.
x() * c.
y() - b.
y() * c.
x()) ;
317 return (a.
a * b.
x() +
325 return ( a.
a * a.
a + a.
b * a.
b + a.
c *a.
c );
331 return (std::sqrt(
Magsq( a )) );