ObjectSearchArea Class

Declaration

struct winrt::Microsoft::Azure::ObjectAnchors::ObjectSearchArea

Description

Area where to look for object(s).

Methods

FromFieldOfView

Creates a search area from a field of view.

static winrt::Microsoft::Azure::ObjectAnchors::ObjectSearchArea FromFieldOfView(winrt::Microsoft::Azure::ObjectAnchors::SpatialGraph::SpatialGraphCoordinateSystem const& coordinateSystem, winrt::Microsoft::Azure::ObjectAnchors::SpatialGraph::SpatialFieldOfView const& fieldOfView);

Parameters

  • coordinateSystem - Reference coordinate system for the search area.
  • fieldOfView - The field of view.

Returns

FromLocation

Creates a search area from a location.

static winrt::Microsoft::Azure::ObjectAnchors::ObjectSearchArea FromLocation(winrt::Microsoft::Azure::ObjectAnchors::SpatialGraph::SpatialGraphCoordinateSystem const& coordinateSystem, Windows::Foundation::Numerics::float3 const& position, Windows::Foundation::Numerics::quaternion const& orientation);

Parameters

  • coordinateSystem - Reference coordinate system for the search area.
  • position - The position.
  • orientation - The orientation.

Returns

FromOrientedBox

Creates a search area from an oriented box.

static winrt::Microsoft::Azure::ObjectAnchors::ObjectSearchArea FromOrientedBox(winrt::Microsoft::Azure::ObjectAnchors::SpatialGraph::SpatialGraphCoordinateSystem const& coordinateSystem, winrt::Microsoft::Azure::ObjectAnchors::SpatialGraph::SpatialOrientedBox const& bounds);

Parameters

  • coordinateSystem - Reference coordinate system for the search area.
  • bounds - The bounds.

Returns

FromSphere

Creates a search area from a sphere.

static winrt::Microsoft::Azure::ObjectAnchors::ObjectSearchArea FromSphere(winrt::Microsoft::Azure::ObjectAnchors::SpatialGraph::SpatialGraphCoordinateSystem const& coordinateSystem, winrt::Microsoft::Azure::ObjectAnchors::SpatialGraph::SpatialSphere const& sphere);

Parameters

  • coordinateSystem - Reference coordinate system for the search area.
  • sphere - The sphere.

Returns