5 #ifndef __IRR_PLANE_3D_H_INCLUDED__
6 #define __IRR_PLANE_3D_H_INCLUDED__
46 {
setPlane(point1, point2, point3); }
73 Normal = (point2 - point1).crossProduct(point3 - point1);
90 T t2 =
Normal.dotProduct(lineVect);
95 T t =- (
Normal.dotProduct(linePoint) +
D) / t2;
96 outIntersection = linePoint + (lineVect * t);
112 return (
f32)-((
Normal.dotProduct(linePoint1) +
D) / t2);
137 const T d =
Normal.dotProduct(point) +
D;
177 const T fn00 =
Normal.getLength();
179 const T fn11 = other.
Normal.getLength();
180 const f64 det = fn00*fn11 - fn01*fn01;
185 const f64 invdet = 1.0 / det;
186 const f64 fc0 = (fn11*-
D + fn01*other.
D) * invdet;
187 const f64 fc1 = (fn00*-other.
D + fn01*
D) * invdet;
216 const f32 d =
Normal.dotProduct(lookDirection);