SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
An API for computing the shortest distance between an input point and a geometric resource component. More...
#include <DistanceTo.h>
Public Member Functions | |
virtual std::pair< double, std::array< double, 3 > > | operator() (const smtk::resource::Component::Ptr &, const std::array< double, 3 > &) const =0 |
Additional Inherited Members | |
![]() | |
static std::size_t | typeIndex () |
![]() | |
static std::size_t | typeIndex () |
![]() | |
typedef smtk::resource::query::Query | Parent |
![]() | |
static int | numberOfGenerationsFromType (const std::size_t index) |
Return the number of generations from this instance to the type index of a parent, or return a large negative number if the two types are unrelated. | |
![]() | |
static int | numberOfGenerationsFromType (const std::size_t index) |
An API for computing the shortest distance between an input point and a geometric resource component.
The location of the point on the component is also returned. This query differs from ClosestPoint in that the returned point does not need to be explicitly contained within the geometric representation.