Skip to main content

in_sphere3d_fast

in_sphere3d_fast(points, a, b, c, d, e) ⇒ number

Approximate 3D insphere test. Non-robust.

Return a positive value if the point pe lies inside the sphere passing through pa, pb, pc, and pd; a negative value if it lies outside; and zero if the five points are cospherical. The points pa, pb, pc, and pd must be ordered so that they have a positive orientation (as defined by orient3d()), or the sign of the result will be reversed.

Kind: global function
See

ParamTypeDescription
pointsArray.<number>
anumbertetrahedral point index
bnumbertetrahedral point index
cnumbertetrahedral point index
dnumbertetrahedral point index
enumberreference point index that we are testing against the tetrahedron