ARSKView.HitTest(CGPoint, ARHitTestResultType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs a hit-test for the specified types
at point
, which is a location in the camera field of view normalized in the range [0,0]-[1,1].
[Foundation.Export("hitTest:types:")]
public virtual ARKit.ARHitTestResult[] HitTest (CoreGraphics.CGPoint point, ARKit.ARHitTestResultType types);
override this.HitTest : CoreGraphics.CGPoint * ARKit.ARHitTestResultType -> ARKit.ARHitTestResult[]
Parameters
- types
- ARHitTestResultType
The ARHitTestResultType(s) that should be tested for.
Returns
Results are ordered from nearest to farthest.
- Attributes
Remarks
The developer must specify the in the range [0,0] (upper left) to [1,1] (lower right) of the camera's field of view. The hit-test occurs along the ray perpendicular to the camera lens at that point.