MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstInSphereTester_float Class Reference
Inheritance diagram for mrmeshpy.ConstInSphereTester_float:

Public Member Functions

InSphereResult __call__ (self, ConstVector3f d)
 __init__ (self, *args, **kwargs)

Detailed Description

Generated from:  MR::InSphereTester<float>
Aliases:  InSphereTesterf

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

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstInSphereTester_float.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstInSphereTester_float) -> None

2. __init__(self: meshlib.mrmeshpy.ConstInSphereTester_float, arg0: meshlib.mrmeshpy.ConstInSphereTester_float) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstInSphereTester_float, : meshlib.mrmeshpy.ConstInSphereTester_float) -> None

Member Function Documentation

◆ __call__()

InSphereResult mrmeshpy.ConstInSphereTester_float.__call__ ( self,
ConstVector3f d )
returns the position of the point d relative to the sphere (never NoSphere);
shall be called only after reset() returned true

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