Class NearAnchorCriteria

Use this class to describe how anchors to be located should be near a source anchor.

class Microsoft::Azure::SpatialAnchors::NearAnchorCriteria final : public std::enable_shared_from_this<Microsoft::Azure::SpatialAnchors::NearAnchorCriteria>

Properties

DistanceInMeters

Maximum distance in meters from the source anchor (defaults to 5).

auto GetDistanceInMeters() const -> float;
auto SetDistanceInMeters(float value) -> void;

MaxResultCount

Maximum desired result count (defaults to 20).

auto GetMaxResultCount() const -> int32_t;
auto SetMaxResultCount(int32_t value) -> void;

SourceAnchor

Source anchor around which nearby anchors should be located.

auto GetSourceAnchor() const -> std::shared_ptr<Microsoft::Azure::SpatialAnchors::CloudSpatialAnchor>;
auto SetSourceAnchor(std::shared_ptr<Microsoft::Azure::SpatialAnchors::CloudSpatialAnchor> const& value) -> void;