Partager via


PerceptionDepthFrameSource.TryGetTransformTo(String, Matrix4x4) Méthode

Définition

Obtient la transformation de la source de trame de profondeur en l’entité cible et définit hasResult sur true, si une corrélation existe. Si aucune corrélation n’existe, hasResult a la valeur false et le résultat n’est pas modifié.

public:
 virtual bool TryGetTransformTo(Platform::String ^ targetId, [Out] float4x4 & result) = TryGetTransformTo;
bool TryGetTransformTo(winrt::hstring const& targetId, [Out] float4x4 & result);
/// [Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
bool TryGetTransformTo(winrt::hstring const& targetId, [Out] float4x4 & result);
public bool TryGetTransformTo(string targetId, out Matrix4x4 result);
[Windows.Foundation.Metadata.Deprecated("PerceptionDepthFrameSource may be unavailable after Windows Creator Update.  Use Windows.Media.Capture.Frames.MediaFrameSource instead.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public bool TryGetTransformTo(string targetId, out Matrix4x4 result);
Public Function TryGetTransformTo (targetId As String, ByRef result As Matrix4x4) As Boolean

Paramètres

targetId
String

Platform::String

winrt::hstring

ID unique de l’entité cible.

result
Matrix4x4

float4x4

S’il existe une corrélation, celle-ci est définie sur une matrice de transformation 4x4 qui change de base du système de coordonnées source de trame de profondeur au système de coordonnées d’entité cible.

Retours

Boolean

bool

True si une corrélation existe, sinon false.

Attributs

S’applique à