21 #ifndef __COLLISION_PREDICATES_H 22 #define __COLLISION_PREDICATES_H 220 static bool _collides_segment_point_1d(
double p0,
224 static bool _collides_segment_point_2d(
const Point& p0,
228 static bool _collides_segment_point_3d(
const Point& p0,
232 static bool _collides_segment_segment_1d(
double p0,
237 static bool _collides_segment_segment_2d(
const Point& p0,
242 static bool _collides_segment_segment_3d(
const Point& p0,
247 static bool _collides_triangle_point_2d(
const Point& p0,
252 static bool _collides_triangle_point_3d(
const Point& p0,
257 static bool _collides_triangle_segment_2d(
const Point& p0,
263 static bool _collides_triangle_segment_3d(
const Point& p0,
269 static bool _collides_triangle_triangle_2d(
const Point& p0,
276 static bool _collides_triangle_triangle_3d(
const Point& p0,
283 static bool _collides_tetrahedron_point_3d(
const Point& p0,
289 static bool _collides_tetrahedron_segment_3d(
const Point& p0,
296 static bool _collides_tetrahedron_triangle_3d(
const Point& p0,
304 static bool _collides_tetrahedron_tetrahedron_3d(
const Point& p0,
static bool collides_triangle_point_3d(const Point &p0, const Point &p1, const Point &p2, const Point &point)
Check whether triangle p0-p1-p2 collides with point (3D version)
Definition: CollisionPredicates.cpp:363
static bool collides_triangle_triangle_3d(const Point &p0, const Point &p1, const Point &p2, const Point &q0, const Point &q1, const Point &q2)
Check whether triangle p0-p1-p2 collides with triangle q0-q1-q2 (3D version)
Definition: CollisionPredicates.cpp:403
static bool collides_segment_segment_1d(double p0, double p1, double q0, double q1)
Check whether segment p0-p1 collides with segment q0-q1 (1D version)
Definition: CollisionPredicates.cpp:328
Definition: CollisionPredicates.h:34
static bool collides_tetrahedron_tetrahedron_3d(const Point &p0, const Point &p1, const Point &p2, const Point &p3, const Point &q0, const Point &q1, const Point &q2, const Point &q3)
Check whether tetrahedron p0-p1-p2-p3 collides with tetrahedron q0-q1-q2.
Definition: CollisionPredicates.cpp:447
static bool collides_segment_segment_2d(const Point &p0, const Point &p1, const Point &q0, const Point &q1)
Check whether segment p0-p1 collides with segment q0-q1 (2D version)
Definition: CollisionPredicates.cpp:336
static bool collides_segment_point(const Point &p0, const Point &p1, const Point &point, std::size_t gdim)
Check whether segment p0-p1 collides with point.
Definition: CollisionPredicates.cpp:194
static bool collides(const MeshEntity &entity, const Point &point)
Definition: CollisionPredicates.cpp:35
static bool collides_triangle_segment(const Point &p0, const Point &p1, const Point &p2, const Point &q0, const Point &q1, std::size_t gdim)
Check whether triangle p0-p1-p2 collides with segment q0-q1.
Definition: CollisionPredicates.cpp:257
static bool collides_tetrahedron_point_3d(const Point &p0, const Point &p1, const Point &p2, const Point &p3, const Point &point)
Check whether tetrahedron p0-p1-p2-p3 collides with point.
Definition: CollisionPredicates.cpp:414
static bool collides_triangle_point_2d(const Point &p0, const Point &p1, const Point &p2, const Point &point)
Check whether triangle p0-p1-p2 collides with point (2D version)
Definition: CollisionPredicates.cpp:354
static bool collides_tetrahedron_triangle_3d(const Point &p0, const Point &p1, const Point &p2, const Point &p3, const Point &q0, const Point &q1, const Point &q2)
Check whether tetrahedron p0-p1-p2-p3 collides with triangle q0-q1-q2.
Definition: CollisionPredicates.cpp:435
static bool collides_segment_point_1d(double p0, double p1, double point)
Check whether segment p0-p1 collides with point (1D version)
Definition: CollisionPredicates.cpp:304
static bool collides_triangle_segment_2d(const Point &p0, const Point &p1, const Point &p2, const Point &q0, const Point &q1)
Check whether triangle p0-p1-p2 collides with segment q0-q1 (2D version)
Definition: CollisionPredicates.cpp:372
static bool collides_segment_point_2d(const Point &p0, const Point &p1, const Point &point)
Check whether segment p0-p1 collides with point (2D version)
Definition: CollisionPredicates.cpp:312
static bool collides_segment_point_3d(const Point &p0, const Point &p1, const Point &point)
Check whether segment p0-p1 collides with point (3D version)
Definition: CollisionPredicates.cpp:320
static bool collides_triangle_triangle_2d(const Point &p0, const Point &p1, const Point &p2, const Point &q0, const Point &q1, const Point &q2)
Check whether triangle p0-p1-p2 collides with triangle q0-q1-q2 (2D version)
Definition: CollisionPredicates.cpp:392
static bool collides_triangle_triangle(const Point &p0, const Point &p1, const Point &p2, const Point &q0, const Point &q1, const Point &q2, std::size_t gdim)
Check whether triangle p0-p1-p2 collides with triangle q0-q1-q2.
Definition: CollisionPredicates.cpp:278
static bool collides_segment_segment_3d(const Point &p0, const Point &p1, const Point &q0, const Point &q1)
Check whether segment p0-p1 collides with segment q0-q1 (3D version)
Definition: CollisionPredicates.cpp:345
static bool collides_triangle_point(const Point &p0, const Point &p1, const Point &p2, const Point &point, std::size_t gdim)
Check whether triangle p0-p1-p2 collides with point.
Definition: CollisionPredicates.cpp:237
Definition: MeshEntity.h:42
static bool collides_triangle_segment_3d(const Point &p0, const Point &p1, const Point &p2, const Point &q0, const Point &q1)
Check whether triangle p0-p1-p2 collides with segment q0-q1 (3D version)
Definition: CollisionPredicates.cpp:382
static bool collides_segment_segment(const Point &p0, const Point &p1, const Point &q0, const Point &q1, std::size_t gdim)
Check whether segment p0-p1 collides with segment q0-q1.
Definition: CollisionPredicates.cpp:215
static bool collides_tetrahedron_segment_3d(const Point &p0, const Point &p1, const Point &p2, const Point &p3, const Point &q0, const Point &q1)
Check whether tetrahedron p0-p1-p2-p3 collides with segment q0-q1.
Definition: CollisionPredicates.cpp:424