#include <triangle3d.h>
| core::vector3df closestPointOnTriangle | ( | const core::vector3df & | p | ) | const [inline] |
Returns the closest point on a triangle to a point on the same plane.
| p,: | Point which must be on the same plane as the triangle. |
| bool getIntersectionOfPlaneWithLine | ( | const vector3d< T > & | linePoint, | |
| const vector3d< T > & | lineVect, | |||
| vector3d< T > & | outIntersection | |||
| ) | const [inline] |
Calculates the intersection between a 3d line and the plane the triangle is on.
| linePoint,: | Point of the line to intersect with. | |
| lineVect,: | Vector of the line to intersect with. | |
| outIntersection,: | Place to store the intersection point, if there is one. |
| bool getIntersectionWithLimitedLine | ( | const line3d< T > & | line, | |
| vector3d< T > & | outIntersection | |||
| ) | const [inline] |
Returns an intersection with a 3d line.
| line,: | Line to intersect with. | |
| outIntersection,: | Place to store the intersection point, if there is one. |
| bool getIntersectionWithLine | ( | const vector3d< T > & | linePoint, | |
| const vector3d< T > & | lineVect, | |||
| vector3d< T > & | outIntersection | |||
| ) | const [inline] |
Returns an intersection with a 3d line. Please note that also points are returned as intersection, which are on the line, but not between the start and end point of the line. If you want the returned point be between start and end, please use getIntersectionWithLimitedLine().
| linePoint,: | Point of the line to intersect with. | |
| lineVect,: | Vector of the line to intersect with. | |
| outIntersection,: | Place to store the intersection point, if there is one. |
| vector3d<T> getNormal | ( | ) | const [inline] |
Returns the normal of the triangle. Please note: The normal is not normalized.
| plane3d<T> getPlane | ( | ) | const [inline] |
Returns if the triangle is front of backfacing.
| lookDirection,: | Look direction. |
| bool isOnSameSide | ( | const vector3d< T > & | p1, | |
| const vector3d< T > & | p2, | |||
| const vector3d< T > & | a, | |||
| const vector3d< T > & | b | |||
| ) | const [inline] |
Returns if a point is inside the triangle
| p,: | Point to test. Assumes that this point is already on the plane of the triangle. |
Returns if a point is inside the triangle. This method is an implementation of the example used in a paper by Kasper Fauerby original written by Keidy from Mr-Gamemaker.
| p,: | Point to test. Assumes that this point is already on the plane of the triangle. |
Determinates if the triangle is totally inside a bounding box.
| box,: | Box to check. |
| bool operator!= | ( | const triangle3d< T > & | other | ) | const [inline] |
| bool operator== | ( | const triangle3d< T > & | other | ) | const [inline] |
| void set | ( | const core::vector3d< T > & | a, | |
| const core::vector3d< T > & | b, | |||
| const core::vector3d< T > & | c | |||
| ) | [inline] |
1.5.1-p1