Szerkesztés

Megosztás a következőn keresztül:


ARSKView.HitTest(CGPoint, ARHitTestResultType) Method

Definition

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

point
CGPoint

A CGPoint normalized to the range [0,0] (upper left) to [1,1] lower right.

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.

Applies to