|
| plane3d () |
|
| plane3d (const glm::vec3 &MPoint, const glm::vec3 &Normal) |
|
| plane3d (T px, T py, T pz, T nx, T ny, T nz) |
|
| plane3d (const glm::vec3 &point1, const glm::vec3 &point2, const glm::vec3 &point3) |
|
| plane3d (const glm::vec3 &normal, const T d) |
|
bool | operator== (const plane3d< T > &other) const |
|
bool | operator!= (const plane3d< T > &other) const |
|
void | setPlane (const glm::vec3 &point, const glm::vec3 &nvector) |
|
void | setPlane (const glm::vec3 &nvect, T d) |
|
void | setPlane (const glm::vec3 &point1, const glm::vec3 &point2, const glm::vec3 &point3) |
|
void | transform (const glm::mat4 &mat) |
|
bool | getIntersectionWithLine (const glm::vec3 &linePoint, const glm::vec3 &lineVect, glm::vec3 &outIntersection) const |
| Get an intersection with a 3d line. More...
|
|
float | getKnownIntersectionWithLine (const glm::vec3 &linePoint1, const glm::vec3 &linePoint2) const |
| Get percentage of line between two points where an intersection with this plane happens. More...
|
|
bool | getIntersectionWithLimitedLine (const glm::vec3 &linePoint1, const glm::vec3 &linePoint2, glm::vec3 &outIntersection) const |
| Get an intersection with a 3d line, limited between two 3d points. More...
|
|
EIntersectionRelation3D | classifyPointRelation (const glm::vec3 &point) const |
| Classifies the relation of a point to this plane. More...
|
|
void | recalculateD (const glm::vec3 &MPoint) |
| Recalculates the distance from origin by applying a new member point to the plane. More...
|
|
glm::vec3 | getMemberPoint () const |
| Gets a member point of the plane. More...
|
|
bool | existsIntersection (const plane3d< T > &other) const |
| Tests if there is an intersection with the other plane. More...
|
|
bool | getIntersectionWithPlane (const plane3d< T > &other, glm::vec3 &outLinePoint, glm::vec3 &outLineVect) const |
| Intersects this plane with another. More...
|
|
bool | getIntersectionWithPlanes (const plane3d< T > &o1, const plane3d< T > &o2, glm::vec3 &outPoint) const |
| Get the intersection point with two other planes if there is one. More...
|
|
bool | isFrontFacing (const glm::vec3 &lookDirection) const |
| Test if the triangle would be front or backfacing from any point. More...
|
|
T | getDistanceTo (const glm::vec3 &point) const |
| Get the distance to a point. More...
|
|
template<class T>
class saga::core::plane3d< T >
Template plane class with some intersection testing methods.
It has to be ensured, that the normal is always normalized. The constructors and setters of this class will not ensure this automatically. So any normal passed in has to be normalized in advance. No change to the normal will be made by any of the class methods.
Definition at line 34 of file plane3d.h.