ProximityResult Class

  • ProximityResult
  • class Esri::ArcGISRuntime::ProximityResult

    The results returned from calling GeometryEngine::nearestCoordinate or GeometryEngine::nearestVertex. More...

    Header: #include <ProximityResult.h>
    Since: Esri::ArcGISRuntime 100.0

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

    ProximityResult(Esri::ArcGISRuntime::ProximityResult &&other)
    ProximityResult(const Esri::ArcGISRuntime::ProximityResult &other)
    Esri::ArcGISRuntime::ProximityResult &operator=(Esri::ArcGISRuntime::ProximityResult &&other)
    Esri::ArcGISRuntime::ProximityResult &operator=(const Esri::ArcGISRuntime::ProximityResult &other)
    ~ProximityResult()
    Esri::ArcGISRuntime::Point coordinate() const
    double distance() const
    bool isEmpty() const
    int partIndex() const
    int pointIndex() const

    Static Public Members

    int npos()

    Detailed Description

    Member Function Documentation

    ProximityResult::ProximityResult(Esri::ArcGISRuntime::ProximityResult &&other)

    Move constructor from other ProximityResult.

    ProximityResult::ProximityResult(const Esri::ArcGISRuntime::ProximityResult &other)

    Copy constructor from other ProximityResult.

    Esri::ArcGISRuntime::ProximityResult &ProximityResult::operator=(Esri::ArcGISRuntime::ProximityResult &&other)

    Equivalency operator to other ProximityResult.

    Esri::ArcGISRuntime::ProximityResult &ProximityResult::operator=(const Esri::ArcGISRuntime::ProximityResult &other)

    Assignment operator from other ProximityResult.

    ProximityResult::~ProximityResult()

    Destructor.

    Esri::ArcGISRuntime::Point ProximityResult::coordinate() const

    Returns the coordinate of the point.

    double ProximityResult::distance() const

    Returns the distance to the point.

    bool ProximityResult::isEmpty() const

    Returns whether this ProximityResult is empty.

    [static] int ProximityResult::npos()

    Returns the maximum possible value for partIndex or pointIndex.

    Used for checking whether the index value is valid. If the index value is equal to npos then the index value is not valid.

    int ProximityResult::partIndex() const

    Returns the index of the part in which the point was found.

    int ProximityResult::pointIndex() const

    Returns the index of the point that was found within the part.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close