#include <WEMGeometry.h>
Public Member Functions | |
| WEMGeometry () | |
| Standard constructor. | |
| ~WEMGeometry () | |
| Standard destructor. | |
Static Public Member Functions | |
| static bool | isPointInsideWEMPatch (const Vector3 &position, WEMPatch *wemPatch) |
| Checks if the given point is inside the given WEMPatch. | |
| static bool | isLineIntersectingFace (const Vector3 &startPos, const Vector3 &endPos, WEMFace *face, WEMPatch *wemPatch) |
| Checks if the given line (from startPos to endPos) intersects the given WEMFace. | |
| static bool | pointInsidePolygon (const Vector3 &point, const std::vector< Vector3 > &polygon) |
| Computes if the given point lies inside the polygon, given by the list of points. | |
| static bool | checkForEdgeNodeCrossing (const Vector3 &rayStart, const Vector3 &rayEnd, WEMFace *face) |
| Checks if the given ray crosses any edge or node of the given face. | |
| static double | computeSegmentSegmentDistance (const Vector3 &start0, const Vector3 &end0, const Vector3 &start1, const Vector3 &end1, Vector3 &intersectionPoint) |
| Returns the minimum distance between the two given segments. If this distance is 0, the intersectionPoint is valid. | |
Definition at line 22 of file WEMGeometry.h.
| ml::WEMGeometry::WEMGeometry | ( | ) |
Standard constructor.
| ml::WEMGeometry::~WEMGeometry | ( | ) |
Standard destructor.
| static bool ml::WEMGeometry::checkForEdgeNodeCrossing | ( | const Vector3 & | rayStart, | |
| const Vector3 & | rayEnd, | |||
| WEMFace * | face | |||
| ) | [static] |
Checks if the given ray crosses any edge or node of the given face.
| static double ml::WEMGeometry::computeSegmentSegmentDistance | ( | const Vector3 & | start0, | |
| const Vector3 & | end0, | |||
| const Vector3 & | start1, | |||
| const Vector3 & | end1, | |||
| Vector3 & | intersectionPoint | |||
| ) | [static] |
Returns the minimum distance between the two given segments. If this distance is 0, the intersectionPoint is valid.
| static bool ml::WEMGeometry::isLineIntersectingFace | ( | const Vector3 & | startPos, | |
| const Vector3 & | endPos, | |||
| WEMFace * | face, | |||
| WEMPatch * | wemPatch | |||
| ) | [static] |
Checks if the given line (from startPos to endPos) intersects the given WEMFace.
| static bool ml::WEMGeometry::isPointInsideWEMPatch | ( | const Vector3 & | position, | |
| WEMPatch * | wemPatch | |||
| ) | [static] |
Checks if the given point is inside the given WEMPatch.
| static bool ml::WEMGeometry::pointInsidePolygon | ( | const Vector3 & | point, | |
| const std::vector< Vector3 > & | polygon | |||
| ) | [static] |
Computes if the given point lies inside the polygon, given by the list of points.
Both, the point and the polygon must be projected onto the x-y plane.
1.5.8