![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <IntersectionTest.h>
Static Public Member Functions | |
| static bool | AABBAABB (const Eigen::Vector3d &min0, const Eigen::Vector3d &max0, const Eigen::Vector3d &min1, const Eigen::Vector3d &max1) |
| static bool | TriangleTriangle3d (const Eigen::Vector3d &p0, const Eigen::Vector3d &p1, const Eigen::Vector3d &p2, const Eigen::Vector3d &q0, const Eigen::Vector3d &q1, const Eigen::Vector3d &q2) |
| static bool | TriangleAABB (const Eigen::Vector3d &box_center, const Eigen::Vector3d &box_half_size, const Eigen::Vector3d &vert0, const Eigen::Vector3d &vert1, const Eigen::Vector3d &vert2) |
| static bool | PointsCoplanar (const Eigen::Vector3d &p0, const Eigen::Vector3d &p1, const Eigen::Vector3d &p2, const Eigen::Vector3d &p3) |
| Tests if the given four points all lie on the same plane. More... | |
| static double | LinesMinimumDistance (const Eigen::Vector3d &p0, const Eigen::Vector3d &p1, const Eigen::Vector3d &q0, const Eigen::Vector3d &q1) |
| static double | LineSegmentsMinimumDistance (const Eigen::Vector3d &p0, const Eigen::Vector3d &p1, const Eigen::Vector3d &q0, const Eigen::Vector3d &q1) |
Definition at line 17 of file IntersectionTest.h.
|
static |
Definition at line 16 of file IntersectionTest.cpp.
|
static |
Computes the minimum distance between two line segments. The first line segment is defined by 3D points
| p0 | and |
| p1,the | second line segment is defined by 3D points |
| q0 | and |
| q1. | This implementation is based on the description of David Eberly (https://www.geometrictools.com/Documentation/DistanceLine3Line3.pdf). |
Definition at line 117 of file IntersectionTest.cpp.
References dist().
|
static |
Computes the minimum distance between two lines. The first line is defined by 3D points
| p0 | and |
| p1,the | second line is defined by 3D points |
| q0 | and |
| q1. | The returned distance is negative if no minimum distance can be computed. This implementation is based on the description of Paul Bourke (http://paulbourke.net/geometry/pointlineplane/). |
Definition at line 76 of file IntersectionTest.cpp.
References abs(), dist(), and cloudViewer::ml::contrib::EPS.
|
static |
Tests if the given four points all lie on the same plane.
Definition at line 69 of file IntersectionTest.cpp.
References cross().
|
static |
Definition at line 56 of file IntersectionTest.cpp.
|
static |
Definition at line 32 of file IntersectionTest.cpp.