#include <plane.h>
Inheritance diagram for Plane< T >:


Public Member Functions | |
| T | distanceTo (const Point3< T > &) const |
| Plane (const Vector3< T > &, const Point3< T > &) | |
| Plane (const Vector3< T > &, T) | |
| Plane (const Plane< T > &) | |
| Plane () | |
Static Public Member Functions | |
| static Point3< T > | intersection (const Plane< T > &, const Plane< T > &, const Plane< T > &) |
Public Attributes | |
| T | d |
| Vector3< T > | normal |
|
|||||||||
|
Definition at line 41 of file plane.h.
|
|
||||||||||
|
Definition at line 45 of file plane.h.
|
|
||||||||||||||||
|
Definition at line 50 of file plane.h.
|
|
||||||||||||||||
|
Definition at line 55 of file plane.h. References Plane< T >::d. 00055 : 00056 normal(_normal) 00057 { 00058 d = _normal.x * _point.x + _normal.y * _point.y + _normal.z * _point.z; 00059 }
|
|
||||||||||
|
Definition at line 61 of file plane.h. References Plane< T >::d, and Plane< T >::normal. Referenced by LODSphereMesh::renderPatches(), and Frustum::testSphere().
|
|
||||||||||||||||||||
|
Definition at line 78 of file plane.h. References cross(), Plane< T >::d, Vector3< T >::x, Vector3< T >::y, and Vector3< T >::z. 00081 {
00082 T d = Matrix3<T>(p0.normal, p1.normal, p2.normal).determinant();
00083
00084 Vector3<T> v = (p0.d * cross(p1.normal, p2.normal) +
00085 p1.d * cross(p2.normal, p0.normal) +
00086 p2.d * cross(p0.normal, p1.normal)) * (1.0f / d);
00087 return Point3<T>(v.x, v.y, v.z);
00088 }
|
|
|||||
|
Definition at line 33 of file plane.h. Referenced by Plane< T >::distanceTo(), Plane< T >::intersection(), Plane< T >::Plane(), Frustum::testSphere(), and Frustum::transform(). |
|
|||||
|
Definition at line 32 of file plane.h. Referenced by Plane< T >::distanceTo(), Frustum::testSphere(), and Frustum::transform(). |
1.4.1