Public Member Functions | |
| auto | assign_from_another (_other:&meshlib::InSphereTester_int) -> &mut meshlib::InSphereTester_int |
| auto | reset (a:&meshlib::Vector3i, b:&meshlib::Vector3i, c:&meshlib::Vector3i, rSq:i64) -> bool |
| void | flip () |
| auto | call (d:&meshlib::Vector3i) const -> meshlib::InSphereResult |
Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::InSphereTester_int > |
| static auto | construct_from_another (_other:&meshlib::InSphereTester_int) -> meshlib::Owned< meshlib::InSphereTester_int > |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
| Static Public Member Functions inherited from meshlib::CppCopy | |
| static auto | copy (ptr:*const Self) -> *mut Self |
the specialization implementing the precise integer predicate, exact for any input; rSq must be given in the same integer grid units as the point coordinates Generated from class MR::InSphereTester<int>. Derived classes: Direct: (non-virtual) MR::InSphereTesterSoS Indirect: (non-virtual) MR::FastInSphereTesterSoS
Generated from class MR::InSphereTester<int>. Heap-allocated instances are held in Owned<InSphereTester_int>.
| auto meshlib::InSphereTester_int::assign_from_another | ( | _other:&meshlib::InSphereTester_int | ) | -> &mut meshlib::InSphereTester_int |
Generated from method MR::InSphereTester<int>::operator=.
Calls MR_InSphereTester_int_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
| auto meshlib::InSphereTester_int::call | ( | d:&meshlib::Vector3i | ) | const -> meshlib::InSphereResult |
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<int>::operator().
Calls MR_InSphereTester_int_call().
|
static |
Generated from constructor MR::InSphereTester<int>::InSphereTester.
Calls MR_InSphereTester_int_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| void meshlib::InSphereTester_int::flip | ( | ) |
swaps the points b and c, which selects the mirror sphere with the center on the other side of plane abc, and gives exactly the state of reset( a, c, b, rSq ) without recomputing anything: only the normal w changes there, and W, M, E are symmetric in b and c; shall be called only after reset() returned true Generated from method MR::InSphereTester<int>::flip.
Calls MR_InSphereTester_int_flip().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_InSphereTester_int_DefaultConstruct().
| auto meshlib::InSphereTester_int::reset | ( | a:&meshlib::Vector3i | , |
| b:&meshlib::Vector3i | , | ||
| c:&meshlib::Vector3i | , | ||
| rSq:i64 | ) -> bool |
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<int>::reset.
Calls MR_InSphereTester_int_reset().