Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
predicates/kernel_ftC3.h File Reference
Include dependency graph for predicates/kernel_ftC3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class FT >
CGAL_BEGIN_NAMESPACE
CGAL_KERNEL_MEDIUM_INLINE
Comparison_result 
compare_lexicographically_xyzC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool strict_dominanceC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool dominanceC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool collinearC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE
Orientation 
orientationC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz, const FT &sx, const FT &sy, const FT &sz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE
Orientation 
coplanar_orientationC3 (const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz, const FT &sx, const FT &sy, const FT &sz, const FT &px, const FT &py, const FT &pz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool collinear_are_ordered_along_lineC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool collinear_are_strictly_ordered_along_lineC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool equal_directionC3 (const FT &dx1, const FT &dy1, const FT &dz1, const FT &dx2, const FT &dy2, const FT &dz2)
 
template<class FT >
CGAL_KERNEL_LARGE_INLINE
Oriented_side 
side_of_oriented_planeC3 (const FT &a, const FT &b, const FT &c, const FT &d, const FT &px, const FT &py, const FT &pz)
 
template<class FT >
CGAL_KERNEL_LARGE_INLINE
Oriented_side 
side_of_oriented_sphereC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz, const FT &sx, const FT &sy, const FT &sz, const FT &tx, const FT &ty, const FT &tz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE
Bounded_side 
side_of_bounded_sphereC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz, const FT &sx, const FT &sy, const FT &sz, const FT &tx, const FT &ty, const FT &tz)
 
template<class FT >
CGAL_KERNEL_INLINE
Comparison_result 
cmp_dist_to_pointC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool has_larger_dist_to_pointC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool has_smaller_dist_to_pointC3 (const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE
Comparison_result 
cmp_signed_dist_to_directionC3 (const FT &pa, const FT &pb, const FT &pc, const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool has_larger_signed_dist_to_directionC3 (const FT &pa, const FT &pb, const FT &pc, const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool has_smaller_signed_dist_to_directionC3 (const FT &pa, const FT &pb, const FT &pc, const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE
Comparison_result 
cmp_signed_dist_to_planeC3 (const FT &ppx, const FT &ppy, const FT &ppz, const FT &pqx, const FT &pqy, const FT &pqz, const FT &prx, const FT &pry, const FT &prz, const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool has_larger_signed_dist_to_planeC3 (const FT &ppx, const FT &ppy, const FT &ppz, const FT &pqx, const FT &pqy, const FT &pqz, const FT &prx, const FT &pry, const FT &prz, const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
 
template<class FT >
CGAL_KERNEL_MEDIUM_INLINE bool has_smaller_signed_dist_to_planeC3 (const FT &ppx, const FT &ppy, const FT &ppz, const FT &pqx, const FT &pqy, const FT &pqz, const FT &prx, const FT &pry, const FT &prz, const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
 

Function Documentation

CGAL_KERNEL_INLINE Comparison_result cmp_dist_to_pointC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz,
const FT &  rx,
const FT &  ry,
const FT &  rz 
)

Definition at line 259 of file predicates/kernel_ftC3.h.

References CGAL_NTS, CGAL::compare(), and squared_distanceC3().

Referenced by cmp_dist_to_point(), has_larger_dist_to_pointC3(), and has_smaller_dist_to_pointC3().

262 {
263  return CGAL_NTS compare(squared_distanceC3(px,py,pz,qx,qy,qz),
264  squared_distanceC3(px,py,pz,rx,ry,rz));
265 }
CGAL_KERNEL_INLINE FT squared_distanceC3(const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
CGAL_KERNEL_INLINE Comparison_result compare(const NT &n1, const NT &n2)
Definition: number_utils.h:143
#define CGAL_NTS

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE Comparison_result cmp_signed_dist_to_directionC3 ( const FT &  pa,
const FT &  pb,
const FT &  pc,
const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz 
)

Definition at line 292 of file predicates/kernel_ftC3.h.

References CGAL_NTS, CGAL::compare(), and scaled_distance_to_directionC3().

Referenced by cmp_signed_dist_to_plane(), has_larger_signed_dist_to_directionC3(), and has_smaller_signed_dist_to_directionC3().

296 {
297  return CGAL_NTS compare(scaled_distance_to_directionC3(pa,pb,pc,px,py,pz),
298  scaled_distance_to_directionC3(pa,pb,pc,qx,qy,qz));
299 }
CGAL_KERNEL_INLINE Comparison_result compare(const NT &n1, const NT &n2)
Definition: number_utils.h:143
#define CGAL_NTS
CGAL_KERNEL_INLINE FT scaled_distance_to_directionC3(const FT &pa, const FT &pb, const FT &pc, const FT &px, const FT &py, const FT &pz)

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE Comparison_result cmp_signed_dist_to_planeC3 ( const FT &  ppx,
const FT &  ppy,
const FT &  ppz,
const FT &  pqx,
const FT &  pqy,
const FT &  pqz,
const FT &  prx,
const FT &  pry,
const FT &  prz,
const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz 
)

Definition at line 328 of file predicates/kernel_ftC3.h.

References sign_of_determinant3x3().

Referenced by cmp_signed_dist_to_plane(), has_larger_signed_dist_to_planeC3(), and has_smaller_signed_dist_to_planeC3().

334 {
336  pqx-ppx, pqy-ppy, pqz-ppz,
337  prx-ppx, pry-ppy, prz-ppz,
338  qx-px, qy-py, qz-pz));
339 }
Sign sign_of_determinant3x3(const FT &a00, const FT &a01, const FT &a02, const FT &a10, const FT &a11, const FT &a12, const FT &a20, const FT &a21, const FT &a22)
Comparison_result
Definition: enum.h:94

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool collinear_are_ordered_along_lineC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz,
const FT &  rx,
const FT &  ry,
const FT &  rz 
)

Definition at line 149 of file predicates/kernel_ftC3.h.

Referenced by collinear_are_ordered_along_line().

153 {
154  if (px < qx) return !(rx < qx);
155  if (qx < px) return !(qx < rx);
156  if (py < qy) return !(ry < qy);
157  if (qy < py) return !(qy < ry);
158  if (pz < qz) return !(rz < qz);
159  if (qz < pz) return !(qz < rz);
160  return true; // p==q
161 }

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool collinear_are_strictly_ordered_along_lineC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz,
const FT &  rx,
const FT &  ry,
const FT &  rz 
)

Definition at line 167 of file predicates/kernel_ftC3.h.

Referenced by collinear_are_strictly_ordered_along_line().

171 {
172  if (px < qx) return (qx < rx);
173  if (qx < px) return (rx < qx);
174  if (py < qy) return (qy < ry);
175  if (qy < py) return (ry < qy);
176  if (pz < qz) return (qz < rz);
177  if (qz < pz) return (rz < qz);
178  return false; // p==q
179 }

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool collinearC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz,
const FT &  rx,
const FT &  ry,
const FT &  rz 
)

Definition at line 96 of file predicates/kernel_ftC3.h.

References sign_of_determinant2x2(), and ZERO.

Referenced by collinear().

99 {
100  FT dpx = px-rx;
101  FT dqx = qx-rx;
102  FT dpy = py-ry;
103  FT dqy = qy-ry;
104  if (sign_of_determinant2x2(dpx, dqx, dpy, dqy) != ZERO)
105  return false;
106  FT dpz = pz-rz;
107  FT dqz = qz-rz;
108  return sign_of_determinant2x2(dpx, dqx, dpz, dqz) == ZERO
109  && sign_of_determinant2x2(dpy, dqy, dpz, dqz) == ZERO;
110 }
CGAL_BEGIN_NAMESPACE Sign sign_of_determinant2x2(const FT &a00, const FT &a01, const FT &a10, const FT &a11)
Definition: enum.h:60

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_BEGIN_NAMESPACE CGAL_KERNEL_MEDIUM_INLINE Comparison_result compare_lexicographically_xyzC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz 
)

Definition at line 61 of file predicates/kernel_ftC3.h.

References CGAL_NTS, CGAL::compare(), and EQUAL.

Referenced by compare_lexicographically_xyz().

63 {
65  if (c != EQUAL) return c;
66  c = CGAL_NTS compare(py, qy);
67  if (c != EQUAL) return c;
68  return CGAL_NTS compare(pz, qz);
69 }
Comparison_result
Definition: enum.h:94
Definition: enum.h:97
CGAL_KERNEL_INLINE Comparison_result compare(const NT &n1, const NT &n2)
Definition: number_utils.h:143
#define CGAL_NTS

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE Orientation coplanar_orientationC3 ( const FT &  qx,
const FT &  qy,
const FT &  qz,
const FT &  rx,
const FT &  ry,
const FT &  rz,
const FT &  sx,
const FT &  sy,
const FT &  sz,
const FT &  px,
const FT &  py,
const FT &  pz 
)

Definition at line 129 of file predicates/kernel_ftC3.h.

References COLLINEAR, and orientationC2().

Referenced by coplanar_orientation().

133 {
134  Orientation oxy_qrs = orientationC2(qx,qy,rx,ry,sx,sy);
135  if (oxy_qrs != COLLINEAR)
136  return Orientation( oxy_qrs * orientationC2(qx,qy,rx,ry,px,py));
137  Orientation oyz_qrs = orientationC2(qy,qz,ry,rz,sy,sz);
138  if (oyz_qrs != COLLINEAR)
139  return Orientation( oyz_qrs * orientationC2(qy,qz,ry,rz,py,pz));
140  Orientation oxz_qrs = orientationC2(qx,qz,rx,rz,sx,sz);
141  assert(oxz_qrs != COLLINEAR);
142  return Orientation( oxz_qrs * orientationC2(qx,qz,rx,rz,px,pz));
143 }
Sign Orientation
Definition: enum.h:64
Orientation orientationC2(const FT &px, const FT &py, const FT &qx, const FT &qy, const FT &rx, const FT &ry)
Sign
Definition: enum.h:57
const Orientation COLLINEAR
Definition: enum.h:72

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool dominanceC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz 
)

Definition at line 85 of file predicates/kernel_ftC3.h.

References CGAL_NTS, CGAL::compare(), and SMALLER.

87 {
88  return CGAL_NTS compare(px, qx) != SMALLER &&
89  CGAL_NTS compare(py, qy) != SMALLER &&
90  CGAL_NTS compare(pz, qz) != SMALLER;
91 }
Definition: enum.h:96
CGAL_KERNEL_INLINE Comparison_result compare(const NT &n1, const NT &n2)
Definition: number_utils.h:143
#define CGAL_NTS

Here is the call graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool equal_directionC3 ( const FT &  dx1,
const FT &  dy1,
const FT &  dz1,
const FT &  dx2,
const FT &  dy2,
const FT &  dz2 
)

Definition at line 184 of file predicates/kernel_ftC3.h.

References CGAL_NTS, sign(), sign_of_determinant2x2(), and ZERO.

186 {
187  return sign_of_determinant2x2(dx1, dy1, dx2, dy2) == ZERO
188  && sign_of_determinant2x2(dx1, dz1, dx2, dz2) == ZERO
189  && sign_of_determinant2x2(dy1, dz1, dy2, dz2) == ZERO
190  && CGAL_NTS sign(dx1) == CGAL_NTS sign(dx2)
191  && CGAL_NTS sign(dy1) == CGAL_NTS sign(dy2)
192  && CGAL_NTS sign(dz1) == CGAL_NTS sign(dz2);
193 }
static SURF_BEGIN_NAMESPACE double sign(double x)
CGAL_BEGIN_NAMESPACE Sign sign_of_determinant2x2(const FT &a00, const FT &a01, const FT &a10, const FT &a11)
Definition: enum.h:60
#define CGAL_NTS

Here is the call graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool has_larger_dist_to_pointC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz,
const FT &  rx,
const FT &  ry,
const FT &  rz 
)

Definition at line 271 of file predicates/kernel_ftC3.h.

References cmp_dist_to_pointC3(), and LARGER.

Referenced by has_larger_dist_to_point().

274 {
275  return cmp_dist_to_pointC3(px,py,pz,qx,qy,qz,rx,ry,rz) == LARGER;
276 }
CGAL_KERNEL_INLINE Comparison_result cmp_dist_to_pointC3(const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz)
Definition: enum.h:98

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool has_larger_signed_dist_to_directionC3 ( const FT &  pa,
const FT &  pb,
const FT &  pc,
const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz 
)

Definition at line 305 of file predicates/kernel_ftC3.h.

References cmp_signed_dist_to_directionC3(), and LARGER.

Referenced by has_larger_signed_dist_to_plane().

309 {
310  return cmp_signed_dist_to_directionC3(pa,pb,pc,px,py,pz,qx,qy,qz) == LARGER;
311 }
Definition: enum.h:98
CGAL_KERNEL_MEDIUM_INLINE Comparison_result cmp_signed_dist_to_directionC3(const FT &pa, const FT &pb, const FT &pc, const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool has_larger_signed_dist_to_planeC3 ( const FT &  ppx,
const FT &  ppy,
const FT &  ppz,
const FT &  pqx,
const FT &  pqy,
const FT &  pqz,
const FT &  prx,
const FT &  pry,
const FT &  prz,
const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz 
)

Definition at line 345 of file predicates/kernel_ftC3.h.

References cmp_signed_dist_to_planeC3(), and LARGER.

Referenced by has_larger_signed_dist_to_plane().

351 {
352  return cmp_signed_dist_to_planeC3(ppx, ppy, ppz, pqx, pqy, pqz,
353  prx, pry, prz, px, py, pz, qx, qy, qz) == LARGER;
354 }
CGAL_KERNEL_MEDIUM_INLINE Comparison_result cmp_signed_dist_to_planeC3(const FT &ppx, const FT &ppy, const FT &ppz, const FT &pqx, const FT &pqy, const FT &pqz, const FT &prx, const FT &pry, const FT &prz, const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
Definition: enum.h:98

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool has_smaller_dist_to_pointC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz,
const FT &  rx,
const FT &  ry,
const FT &  rz 
)

Definition at line 282 of file predicates/kernel_ftC3.h.

References cmp_dist_to_pointC3(), and SMALLER.

Referenced by has_smaller_dist_to_point().

285 {
286  return cmp_dist_to_pointC3(px,py,pz,qx,qy,qz,rx,ry,rz) == SMALLER;
287 }
CGAL_KERNEL_INLINE Comparison_result cmp_dist_to_pointC3(const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz)
Definition: enum.h:96

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool has_smaller_signed_dist_to_directionC3 ( const FT &  pa,
const FT &  pb,
const FT &  pc,
const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz 
)

Definition at line 317 of file predicates/kernel_ftC3.h.

References cmp_signed_dist_to_directionC3(), and SMALLER.

Referenced by has_smaller_signed_dist_to_plane().

321 {
322  return cmp_signed_dist_to_directionC3(pa,pb,pc,px,py,pz,qx,qy,qz) == SMALLER;
323 }
Definition: enum.h:96
CGAL_KERNEL_MEDIUM_INLINE Comparison_result cmp_signed_dist_to_directionC3(const FT &pa, const FT &pb, const FT &pc, const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool has_smaller_signed_dist_to_planeC3 ( const FT &  ppx,
const FT &  ppy,
const FT &  ppz,
const FT &  pqx,
const FT &  pqy,
const FT &  pqz,
const FT &  prx,
const FT &  pry,
const FT &  prz,
const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz 
)

Definition at line 360 of file predicates/kernel_ftC3.h.

References cmp_signed_dist_to_planeC3(), and SMALLER.

Referenced by has_smaller_signed_dist_to_plane().

366 {
367  return cmp_signed_dist_to_planeC3(ppx, ppy, ppz, pqx, pqy, pqz,
368  prx, pry, prz, px, py, pz, qx, qy, qz) == SMALLER;
369 }
CGAL_KERNEL_MEDIUM_INLINE Comparison_result cmp_signed_dist_to_planeC3(const FT &ppx, const FT &ppy, const FT &ppz, const FT &pqx, const FT &pqy, const FT &pqz, const FT &prx, const FT &pry, const FT &prz, const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz)
Definition: enum.h:96

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE Orientation orientationC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz,
const FT &  rx,
const FT &  ry,
const FT &  rz,
const FT &  sx,
const FT &  sy,
const FT &  sz 
)

Definition at line 115 of file predicates/kernel_ftC3.h.

References sign_of_determinant3x3().

Referenced by orientation(), and side_of_bounded_sphereC3().

119 {
120  return Orientation(sign_of_determinant3x3(qx-px,rx-px,sx-px,
121  qy-py,ry-py,sy-py,
122  qz-pz,rz-pz,sz-pz));
123 }
Sign sign_of_determinant3x3(const FT &a00, const FT &a01, const FT &a02, const FT &a10, const FT &a11, const FT &a12, const FT &a20, const FT &a21, const FT &a22)
Sign Orientation
Definition: enum.h:64

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE Bounded_side side_of_bounded_sphereC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz,
const FT &  rx,
const FT &  ry,
const FT &  rz,
const FT &  sx,
const FT &  sy,
const FT &  sz,
const FT &  tx,
const FT &  ty,
const FT &  tz 
)

Definition at line 238 of file predicates/kernel_ftC3.h.

References orientationC3(), s, and side_of_oriented_sphereC3().

Referenced by side_of_bounded_sphere().

243 {
245  qx, qy, qz,
246  rx, ry, rz,
247  sx, sy, sz,
248  tx, ty, tz);
249  Orientation o = orientationC3(px, py, pz,
250  qx, qy, qz,
251  rx, ry, rz,
252  sx, sy, sz);
253  return Bounded_side(s * o);
254 }
CGAL_KERNEL_MEDIUM_INLINE Orientation orientationC3(const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz, const FT &sx, const FT &sy, const FT &sz)
double s
Definition: blastest.C:80
Sign
Definition: enum.h:57
Oriented_side
Definition: enum.h:78
CGAL_KERNEL_LARGE_INLINE Oriented_side side_of_oriented_sphereC3(const FT &px, const FT &py, const FT &pz, const FT &qx, const FT &qy, const FT &qz, const FT &rx, const FT &ry, const FT &rz, const FT &sx, const FT &sy, const FT &sz, const FT &tx, const FT &ty, const FT &tz)
Bounded_side
Definition: enum.h:86

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_LARGE_INLINE Oriented_side side_of_oriented_planeC3 ( const FT &  a,
const FT &  b,
const FT &  c,
const FT &  d,
const FT &  px,
const FT &  py,
const FT &  pz 
)

Definition at line 198 of file predicates/kernel_ftC3.h.

References CGAL_NTS, and sign().

200 {
201  return Oriented_side(CGAL_NTS sign(a*px + b*py + c*pz +d));
202 }
static SURF_BEGIN_NAMESPACE double sign(double x)
const NT & d
Oriented_side
Definition: enum.h:78
#define CGAL_NTS

Here is the call graph for this function:

CGAL_KERNEL_LARGE_INLINE Oriented_side side_of_oriented_sphereC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz,
const FT &  rx,
const FT &  ry,
const FT &  rz,
const FT &  sx,
const FT &  sy,
const FT &  sz,
const FT &  tx,
const FT &  ty,
const FT &  tz 
)

Definition at line 207 of file predicates/kernel_ftC3.h.

References CGAL_NTS, sign_of_determinant4x4(), and square().

Referenced by side_of_bounded_sphereC3(), and side_of_oriented_sphere().

212 {
213  FT ptx = px - tx;
214  FT pty = py - ty;
215  FT ptz = pz - tz;
216  FT pt2 = CGAL_NTS square(ptx) + CGAL_NTS square(pty) + CGAL_NTS square(ptz);
217  FT qtx = qx - tx;
218  FT qty = qy - ty;
219  FT qtz = qz - tz;
220  FT qt2 = CGAL_NTS square(qtx) + CGAL_NTS square(qty) + CGAL_NTS square(qtz);
221  FT rtx = rx - tx;
222  FT rty = ry - ty;
223  FT rtz = rz - tz;
224  FT rt2 = CGAL_NTS square(rtx) + CGAL_NTS square(rty) + CGAL_NTS square(rtz);
225  FT stx = sx - tx;
226  FT sty = sy - ty;
227  FT stz = sz - tz;
228  FT st2 = CGAL_NTS square(stx) + CGAL_NTS square(sty) + CGAL_NTS square(stz);
229  return Oriented_side(sign_of_determinant4x4(ptx,pty,ptz,pt2,
230  rtx,rty,rtz,rt2,
231  qtx,qty,qtz,qt2,
232  stx,sty,stz,st2));
233 }
double square(double x)
Oriented_side
Definition: enum.h:78
Sign sign_of_determinant4x4(const FT &a00, const FT &a01, const FT &a02, const FT &a03, const FT &a10, const FT &a11, const FT &a12, const FT &a13, const FT &a20, const FT &a21, const FT &a22, const FT &a23, const FT &a30, const FT &a31, const FT &a32, const FT &a33)
#define CGAL_NTS

Here is the call graph for this function:

Here is the caller graph for this function:

CGAL_KERNEL_MEDIUM_INLINE bool strict_dominanceC3 ( const FT &  px,
const FT &  py,
const FT &  pz,
const FT &  qx,
const FT &  qy,
const FT &  qz 
)

Definition at line 74 of file predicates/kernel_ftC3.h.

References CGAL_NTS, CGAL::compare(), and LARGER.

76 {
77  return CGAL_NTS compare(px, qx) == LARGER &&
78  CGAL_NTS compare(py, qy) == LARGER &&
79  CGAL_NTS compare(pz, qz) == LARGER;
80 }
Definition: enum.h:98
CGAL_KERNEL_INLINE Comparison_result compare(const NT &n1, const NT &n2)
Definition: number_utils.h:143
#define CGAL_NTS

Here is the call graph for this function: