Params
A collection of filters for Spatial Anchor queries. Filters that have been set will be combined via logical conjunction. E. g. results must match the ids filter AND fall within the radius constraint when both have been set. This struct must be initialized by calling #MLSpatialAnchorQueryFilterInit before use.
Public Methods
Params
public Params(
Vector3 Center,
float Radius,
uint MaxResults,
bool Sorted
)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | Center | |
float | Radius | |
uint | MaxResults | |
bool | Sorted |
Params
public Params(
Vector3 Center,
float Radius,
Anchor [] Anchors,
uint MaxResults,
bool Sorted
)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | Center | |
float | Radius | |
Anchor [] | Anchors | |
uint | MaxResults | |
bool | Sorted |
Params
public Params(
Vector3 Center,
float Radius,
string [] AnchorIds,
uint MaxResults,
bool Sorted
)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | Center | |
float | Radius | |
string [] | AnchorIds | |
uint | MaxResults | |
bool | Sorted |
Public Attributes
AnchorIds
A list of Spatial Anchors Ids query for. Only the array of anchors or the array of strings will be used for querying.
public readonly string [] AnchorIds;
Anchors
A list of Spatial Anchors to query for. Only the array of anchors or the array of strings will be used for querying.
public readonly Anchor [] Anchors;
Center
The center point of where a spatial query will originate.
public readonly Vector3 Center;
MaxResults
The upper bound of expected results. Set to 0 for unbounded results.
public readonly uint MaxResults;
Radius
The radius in meters used for a spatial query, relative to the specified center. Only anchors inside this radius will be returned. Set to 0 for unbounded results.
public readonly float Radius;
Sorted
Indicate whether the results will be returned sorted by distance from center. Sorting results by distance will incur a performance penalty.
public readonly bool Sorted;