MeshLib C# Docs
Loading...
Searching...
No Matches
MR.InSphereTester_Double Class Reference

accelerates testing of many query points against one sphere given by the same three points and radius, pre-computing all the point-independent quantities once; the primary template works for floating-point T with the same case analysis as the precise specialization for int below, so the answers for the query points near the sphere's surface are subject to rounding errors, and OnSphere is returned only on the exact equality in the comparisons; the products inside have degree 16 in coordinates, so to avoid overflows any difference of two given points' coordinates as well as sqrt(rSq) must be below ~100 for T=float and ~1e18 for T=double; the one-call inSphere functions are implemented via this class Generated from class MR::InSphereTester<double>. This is the non-const half of the class. More...

Inheritance diagram for MR.InSphereTester_Double:

Public Member Functions

unsafe InSphereTester_Double ()
 Constructs an empty (default-constructed) instance.
unsafe InSphereTester_Double (MR.Const_InSphereTester_Double _other)
 Generated from constructor MR::InSphereTester<double>::InSphereTester.
 InSphereTester_Double (InSphereTester_Double _other)
 Generated from constructor MR::InSphereTester<double>::InSphereTester.
unsafe MR.InSphereTester_Double assign (MR.Const_InSphereTester_Double _other)
 Generated from method MR::InSphereTester<double>::operator=.
unsafe bool reset (in MR.Vector3d va, in MR.Vector3d vb, in MR.Vector3d vc, double sqRadius)
 prepares the tester for the sphere of radius sqrt(rSq) passing via points a, b, c, with the center located on the positive side of plane abc (in the half-space pointed at by cross( b - a, c - a ) from the plane); returns false if no such sphere exists: the points are collinear or coincident, or rSq is less than the squared circumradius of triangle abc Generated from method MR::InSphereTester<double>reset.
Public Member Functions inherited from MR.Const_InSphereTester_Double
virtual void Dispose ()
unsafe Const_InSphereTester_Double ()
 Constructs an empty (default-constructed) instance.
unsafe Const_InSphereTester_Double (MR.Const_InSphereTester_Double _other)
 Generated from constructor MR::InSphereTester<double>::InSphereTester.
 Const_InSphereTester_Double (InSphereTester_Double _other)
 Generated from constructor MR::InSphereTester<double>::InSphereTester.
unsafe MR.InSphereResult call (in MR.Vector3d d)
 returns the position of the point d relative to the sphere (never NoSphere); shall be called only after reset() returned true Generated from method MR::InSphereTester<double>::operator().

Additional Inherited Members

Protected Member Functions inherited from MR.Const_InSphereTester_Double
virtual unsafe void Dispose (bool disposing)

Detailed Description

accelerates testing of many query points against one sphere given by the same three points and radius, pre-computing all the point-independent quantities once; the primary template works for floating-point T with the same case analysis as the precise specialization for int below, so the answers for the query points near the sphere's surface are subject to rounding errors, and OnSphere is returned only on the exact equality in the comparisons; the products inside have degree 16 in coordinates, so to avoid overflows any difference of two given points' coordinates as well as sqrt(rSq) must be below ~100 for T=float and ~1e18 for T=double; the one-call inSphere functions are implemented via this class Generated from class MR::InSphereTester<double>. This is the non-const half of the class.

Constructor & Destructor Documentation

◆ InSphereTester_Double() [1/3]

unsafe MR.InSphereTester_Double.InSphereTester_Double ( )
inline

Constructs an empty (default-constructed) instance.

◆ InSphereTester_Double() [2/3]

unsafe MR.InSphereTester_Double.InSphereTester_Double ( MR.Const_InSphereTester_Double _other)
inline

Generated from constructor MR::InSphereTester<double>::InSphereTester.

◆ InSphereTester_Double() [3/3]

MR.InSphereTester_Double.InSphereTester_Double ( InSphereTester_Double _other)
inline

Generated from constructor MR::InSphereTester<double>::InSphereTester.

Member Function Documentation

◆ assign()

unsafe MR.InSphereTester_Double MR.InSphereTester_Double.assign ( MR.Const_InSphereTester_Double _other)
inline

Generated from method MR::InSphereTester<double>::operator=.

◆ reset()

unsafe bool MR.InSphereTester_Double.reset ( in MR.Vector3d va,
in MR.Vector3d vb,
in MR.Vector3d vc,
double sqRadius )
inline

prepares the tester for the sphere of radius sqrt(rSq) passing via points a, b, c, with the center located on the positive side of plane abc (in the half-space pointed at by cross( b - a, c - a ) from the plane); returns false if no such sphere exists: the points are collinear or coincident, or rSq is less than the squared circumradius of triangle abc Generated from method MR::InSphereTester<double>reset.


The documentation for this class was generated from the following file: