Bearbeiten

Freigeben über


IMixedRealityNearPointer.TryGetDistanceToNearestSurface(Single) Method

Definition

Near pointers often interact with surfaces.

This method provides a mechanism to get the distance to the closest surface the near pointer is interacting with.

public:
 bool TryGetDistanceToNearestSurface([Runtime::InteropServices::Out] float % distance);
public bool TryGetDistanceToNearestSurface (out float distance);
abstract member TryGetDistanceToNearestSurface : single -> bool
Public Function TryGetDistanceToNearestSurface (ByRef distance As Single) As Boolean

Parameters

distance
Single

Out parameter filled with the distance along the surface normal from the surface to the pointer if available, otherwise 0.0f.

Returns

True if a distance was retrieved, false if not.

Applies to