|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Macros | |
| #define | vecdot(a, b) ((a).x*(b).x + (a).y*(b).y + (a).z*(b).z) |
| #define | vecdotproduct(a, b) |
| #define | vecdiff(a, b) ((coord){(a).x - (b).x, (a).y - (b).y, (a).z - (b).z}) |
| #define | vecdist2(a, b) (sq((a).x - (b).x) + sq((a).y - (b).y) + sq((a).z - (b).z)) |
Functions | |
| double | PointTriangleDistance (const coord *P, const coord *P0, const coord *P1, const coord *P2, double *s, double *t) |
| Returns the squared distance between point P and triangle P0, P1, P2. | |
| int | PointTriangleOrientation (const coord *P, const coord *P0, const coord *P1, const coord *P2) |
| double | PointSegmentDistance (const coord *p, const coord *p0, const coord *p1, coord *segmentClosest, double *segmentParameter) |
| Returns the squared distance between p and [p0:p1]. | |
| int | PointSegmentOrientation (const coord *P, const coord *P0, const coord *P1) |
Definition at line 7 of file PointTriangle.h.
Definition at line 8 of file PointTriangle.h.
Definition at line 3 of file PointTriangle.h.
Definition at line 4 of file PointTriangle.h.
| double PointSegmentDistance | ( | const coord * | p, |
| const coord * | p0, | ||
| const coord * | p1, | ||
| coord * | segmentClosest, | ||
| double * | segmentParameter | ||
| ) |
Returns the squared distance between p and [p0:p1].
Definition at line 263 of file PointTriangle.h.
References dimension, p, t, vecdiff, vecdot, and x.
Referenced by update_distance().
Definition at line 308 of file PointTriangle.h.
References n, sign(), vecdiff, vecdotproduct, and x.
Referenced by update_distance().
| double PointTriangleDistance | ( | const coord * | P, |
| const coord * | P0, | ||
| const coord * | P1, | ||
| const coord * | P2, | ||
| double * | s, | ||
| double * | t | ||
| ) |
Returns the squared distance between point P and triangle P0, P1, P2.
Squared distance is returned in d2. s and t returns the closest point in parametric form in terms of edges P0P1 and P0P2.
Definition at line 15 of file PointTriangle.h.
References b1, c, HUGE, s, t, vecdiff, vecdot, and x.
Referenced by update_distance().
| int PointTriangleOrientation | ( | const coord * | P, |
| const coord * | P0, | ||
| const coord * | P1, | ||
| const coord * | P2 | ||
| ) |
Definition at line 248 of file PointTriangle.h.
References n, sign(), vecdiff, vecdot, vecdotproduct, and x.
Referenced by update_distance().